Error 'Field Group not found in the category' when creating specification via API using group that belongs to parent category
ID: 2xkVJw4JcfdhgV1Ag2HdGu
Backlog
Published on 10/1/2024
•
Last update on 10/1/2024
Summary
Is possible to create a specification using the following API: https://developers.vtex.com/docs/api-reference/catalog-api#post-/api/catalog/pvt/specification
The field "FieldGroupId" is the ID of the group of specifications that contains the new specification. However, when the group belongs to a parent category, not the category used for creating the specification, the error Field Group not found in the category is returned.
Simulation
- Create a group category on a Parent category
- Use the API above to create a new specification on a child category
- Fill the field FieldGroupId with the groupId from the parent category
- Check that the error appears.
Workaround
Create the specification via UI, create the specification on the parent category or create a group on the child category to use.