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.
Unique request ID
Body
Details to create category
24-character system-generated ID of parent category
Non-localized category name
Localized properties
true: Category name is translated into different languages or localized for different regions. <br /> false: Category name isn't localized. Note: Refer to localizedProperties
to get relevant details based on locale.
Details of attributes assigned to a category
List attributes applicable for all products in the specified category
Response
Category details
24-character system-generated category ID
Non-localized category name
Localized properties of category
true: Category name is translated into different languages or localized for different regions <br /> false: Category name isn't localized Note: Refer to localizedProperties
to get relevant details based on locale
true: This is a root category <br /> false: This isn't a root category
true: This is the last category of the branch with no further children categories <br /> false: This isn't the last category of the branch and has children categories
true: This is the leaf category of the branch which has some products in it <br /> false: This branch doesn't have any direct products assigned to it
Attributes assigned to the specified category
Attributes assigned for all products in the specified category.
Immediate children of the specified category
Email of user who last update the category
Time of last update to category
Time of category creation
Was this page helpful?