Create Category
Items are organized within categories, which form the original hierarchical tree structure with multiple levels of nested categories.
This endpoint is used to create a new category within this
structure. Note: 1. Upon onboarding a new merchant to fabric
Product Catalog, a root category is automatically generated.
2. This endpoint doesn’t support adding of children categories. Use the Update category endpoint - PUT /categories/{id}
endpoint to add child categories.
Authorizations
S2S access token (JWT) from fabric Identity service (during Login)
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
"517fa9dfd42d8b00g1o3k312"
Unique request ID
"263e731c-45c8-11ed-b878-0242ac120002"
Body
Details to create category
Response
OK
Category details