POST
/
collections

Authorizations

Authorization
string
header
required

S2S access token (JWT) from fabric Identity service (during Login)

Headers

x-fabric-tenant-id
string

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.

x-fabric-request-id
string

Unique request ID

Body

application/json

Collection details

attributes
object[]

Collection attributes

categoryIdsExcluded
string[]
deprecated

List of excluded category IDs

categoryIdsIncluded
string[]
isLeaf
boolean

true: This is the last collection of the branch with no further children collections <br /> false: This isn't the last collection of the branch and has children collections

isLocalizable
boolean

true: Collection name is translated into different languages or localized for different regions <br /> false: Collection name isn't localized. Note: Refer to localizedProperties to get relevant details based on locale

isRoot
boolean

true: This collection is the root branch <br /> false: This collection isn't the root branch

localizedProperties
object

localized properties of collection

name
string

Non-localized collection name

parentCollectionId
string

24-character system-generated parent collection ID

productAttributeFilters
object[]

Details of attribute filters applied. In the Create collection endpoint, it's also used to create collection based on attribute values. For example, create collection for mobile phones, where price is greater than 25000

Response

200 - application/json

Collection details

attributes
object[]

Collection attributes

categoriesExcluded
object[]

List of categories excluded

categoriesIncluded
object[]

List of categories included

children
object[]

Immediate children of the specified collection

createdAt
string

Time of category creation (UTC)

id
string

24-character system-generated collection ID

isActive
boolean

true: Collection is active <br /> false: Collection is inactive

isLocalizable
boolean

true: Collection name is translated into different languages or localized for different regions <br /> false: Collection name isn't localized Note: Refer to localizedProperties to get relevant details based on locale

isRoot
boolean

true: Collection is root category.<br /> false: Collection isn't a root category.

localizedProperties
object

Localized details

name
string

Non-localized collection name

productAttributeFilters
object[]

Attribute filters applied to the category

updatedAt
string

Time of last updated to category (UTC)

updatedBy
string

Email of user who last updated the category