GET
/
api-category
/
v1
/
category
/
tree

Authorizations

Authorization
string
headerrequired

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

Headers

x-site-context
string
required

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.

Query Parameters

id
string

A 24-character system-generated ID of root category. Either id or nodeId must be specified.

nodeId
integer

Numeric category ID. Either id or nodeId must be specified.

depth
number

Limits the size of the hierarchical category tree returned in the response. Depth of 0 means no children categories, attributes, or breadcrumbs, are included in the response. Unless depth is specified, entire category is returned up to the last set of categories (that have no more children categories).

excludeAttributes
boolean

Set true to exclude attributes from both parent and children objects or false to include attributes in both parent and children details. <br /> The default setting false.

excludeBreadcrumbs
boolean

Set true to exclude breadcrumbs from both parent and children objects or false to include breadcrumbs in both parent and children details. <br /> The default setting false.

excludeItemIds
boolean

Set true to exclude item IDs from both parent and children objects or false to include item IDs in both parent and children details. <br /> The default setting false.

onlyIncludeAttributes
string[]

Attributes are included based on their exact, case-sensitive names. For example, if you specify the values as xyZ and Abc, the response will include these attributes in both parent and child objects.

Response

200 - application/json
id
string

A 24-character system-generated category ID

nodeId
number

Numeric category ID

name
string

Category name

hierarchy
enum<string>

Category type

Available options:
PRIMARY,
ALTERNATE
isActive
boolean

true: Category is Active <br /> false: Category is Inactive <br /> Note: Inactive status is not applicable for Primary category.

attributes
object[]

Details of attributes belonging to this category

children
object[]

Children categories of this category

createdOn
string

Time of category creation (UTC format)

modifiedOn
string

Time when category was last updated (UTC format)