Public API: assign multiple categories to a product
Allow the Public API to assign more than one category to a product, including storefront categories, as is possible in the application. This lets MSPs manage product categorisation and storefront assortments from their own automations.
Log in to comment and vote
Comments1
Bram Fofana
Dec 3
This already works since release v223. In Salesbuildr a product has one internal category and can sit in any number of storefront categories, and the Public API follows the same rules. Send categoryId and storefrontCategoryIds when you create or update a product (the list replaces the current storefront categories), or use POST /public-api/product/{id}/storefront-categories/assign and /unassign to add or remove categories without touching the others. Both also work by external identifier. The endpoints are listed in the Public API article: https://help.salesbuildr.com/en/articles/3446453-public-api