GET
/
catalog
/
categories
/
{id}
/
tree
curl --request GET \
  --url https://sandbox-api.violet.io/v1/catalog/categories/{id}/tree \
  --header 'X-Violet-App-Id: <x-violet-app-id>' \
  --header 'X-Violet-App-Secret: <x-violet-app-secret>' \
  --header 'X-Violet-Token: <x-violet-token>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "parent_id": "<string>",
    "depth": 123
  }
]

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
required
X-Violet-App-Secret
string
required
X-Violet-App-Id
integer
required

Path Parameters

id
string
required

Response

default - application/json

default response

The response is of type object[].