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.
S2S access token (JWT) from fabric Identity service (during Login)
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"