Create category
Creates Primary or Alternate category to organize items into logical groups.
Note:
1) To add Primary category, only name
is required in the request.
2) To add a child category, both name
and parentNodeId
are required. For child category, you can additionally specify order
of display.
3) To add an Alternate category, both name
and type
are required.
Note: Category details including category ID received in the response are required for subsequent calls. For example, it’s required to Create item (POST /v1/product/bulk/insert).
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Body
Response
The response is of type object
.