Category Tree Resources
Read Category Trees
Retrieves a category tree.
Note: By default, only published categories are retrieved.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]{2,15}$The request was successful. The category tree is returned.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
saasdev2If set to true, not published categories are retrieved as well.
Possible values:
truefalse
Note: To get unpublished categories you need to have category.category_read_unpublished scope.
falseExample: trueList of category IDs. If provided, the response returns only the category trees that include at least one of the specified categories.
["d9e4fdd0-e671-4968-9ba1-a5533a7f3b02","0f1056cc-b4b4-488b-9f95-245f6b542702"]To use this endpoint you have to add X-Version header with proper value to your request.
Note: The header value has to match following regular expression: ^v[1-9][0-9]?$
v2Pattern: ^v[1-9][0-9]?$The request was successful. The category tree is returned.
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
saasdev2If set to true, not published categories are retrieved as well.
Possible values:
truefalse
Note: To get unpublished categories you need to have category.category_read_unpublished scope.
falseExample: trueTo use this endpoint you have to add X-Version header with proper value to your request.
Note: The header value has to match following regular expression: ^v[1-9][0-9]?$
v2Pattern: ^v[1-9][0-9]?$List of category IDs. If provided, the response returns only the category trees that include at least one of the specified categories.
The request was successful. The category tree is returned.
Request was syntactically incorrect. Details will be provided in the response payload.
Retrieves a category tree for a root category with a given id.
Note: You can retrieve a category tree only for a root category. It is not possible to get a category tree for a category that lies lower in the hierarchy.
Additional scope info
category.category_read_unpublished- Only required if the response should contain unpublished categories.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
saasdev2A unique identifier of a root category, generated when the category is created.
12a24ba108-e6fd-4139-b831-5ac5fded6d34If set to true, not published categories are retrieved as well.
Possible values:
truefalse
Note: To get unpublished categories you need to have category.category_read_unpublished scope.
falseExample: trueTo use this endpoint you have to add X-Version header with proper value to your request.
Note: The header value has to match following regular expression: ^v[1-9][0-9]?$
v2Pattern: ^v[1-9][0-9]?$The request was successful. The category tree is returned.
Permission denied due to insufficient rights. This may happen when request does not contain sufficient scopes for given query values.
Category tree with specified id does not exist
Last updated
Was this helpful?

