curl --request GET \
--url https://{host}/api/v3/departments/tree \
--header 'Authorization: <authorization>'{
"data": {
"node": null,
"children": [
{
"node": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"children": [
{}
]
}
]
}
}List all departments as a tree. Remark: first node is always empty and represents the starting point of the tree as multiple departments might be set to the highest level.
curl --request GET \
--url https://{host}/api/v3/departments/tree \
--header 'Authorization: <authorization>'{
"data": {
"node": null,
"children": [
{
"node": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"children": [
{}
]
}
]
}
}Was this page helpful?