Create or update multiple categories or collections
With endpoint, you can create or update up to 20 categories and collections, along with their children. It is particularly useful when dealing with complex organization structures.
Note:
1) parentNodeName
is a breadcrumb string of parent having delimeter as ->
2) PRIMARY is the root category (level 0) name. To create root categories or children of PRIMARY root category, pass PRIMARY as parentNodeName
parameter. For collections, the collection name is the root, followed by its children with delimeter
3) If a category name already exists as a parent category, use this endpoint to update the existing category. Otherwise, it creates a new category under the given parent.
Authorizations
S2S access token (JWT) from fabric Identity service (during Login)
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
Body
Category name to upsert
Parent Category breadcrumb starting from PRIMARY which is the name of root node
Order in which category will be displayed in Product Catalog in Copilot.
Was this page helpful?