GET

/v1/catalog/categories/{id}/tree

X-Violet-Token
X-Violet-App-Secret
X-Violet-App-Id
curl --request GET \
  --url https://sandbox-api.violet.io/v1/catalog/categories/{id}/tree
[
  {
    "depth": "integer",
    "id": "string",
    "name": "string",
    "parent_id": "string",
    "slug": "string"
  }
]

Retrieve the Category Tree for a given category_id. A category tree is a hierarchical structure used to organize items into nested categories and subcategories to facilitate easier navigation and management.

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

idrequired
string

Response

200 - application/json
depthrequired
integer

Category Depth

id
string
namerequired
string

Category Name

parent_id
string

Parent ID

slugrequired
string

Category Slug