Get Subcategories by Parent Id
All API requests should contain authorization headers.

Request

GET /categories/{parentId}/subcategories?includeHidden={includeHidden}

Query Parameters

Name
Type
Required
Comments
parentId
integer
no
Id of category which subcategories you want to receive. Without this parameter response will contain root categories.
includeHidden
boolean
no
if set to true response will contain hidden categories. Default value is false

Response

{
"data": [
{
"autoArchive": false,
"canBeChosen": true,
"isHidden": false,
"isMuted": false,
"parentId": 15597,
"id": 15607,
"name": "Company1"
},
{
"autoArchive": false,
"canBeChosen": true,
"isHidden": false,
"isMuted": false,
"parentId": 15597,
"id": 15608,
"name": "Company2"
},
{
"autoArchive": false,
"canBeChosen": true,
"isHidden": false,
"isMuted": false,
"parentId": 15597,
"id": 15609,
"name": "Others"
}
],
"errorCode": -1,
"errorText": null
}
Data field has type array of Category objects.
Copy link
Outline