I am developing a solution for a vtex store. And I need to asociate an existing specification to a category. But I can’t find an endpoint in the documentation that allows me do this. I find create, update, and get…but not a way to associate a existing specification to a category.
How can I associate an existing specification with a category?
Hi @gasgen, you can use this endpoint: Specification (vtex.com)
There is a field ‘CategoryId’ for this purpose, where you must place the id for that category (e.g. 15).
You may also check existing fields for each category with this method: Category Specification (vtex.com)
Quick update: now I read ‘existing’, so you may use the ‘PUT’ method. Specification (vtex.com)
Making a GET first could make it easier for you: Specification (vtex.com)
Hi Eduardo! Thanks for answering me. But…if I want to use the same specficiation for various categories…this endpoint doesn’t work, because this PUT “move” the spec for another category…I need to set the same specification to many categories…
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.