Get list of departments for particular organizations
Headers
-
TARGET-ORGANIZATION-ID
integer(int32) ID of organization, for which the operation must be performed
-
WEAL-TOKEN
string Required API token (can be retrieved from account settings)
Path parameters
-
id
integer Required id
GET
/api-v1/department/tree/{id}
curl \
--request GET 'https://wyzio.app/api-v1/department/tree/{id}' \
--header "TARGET-ORGANIZATION-ID: 42" \
--header "WEAL-TOKEN: string"
Response examples (200)
[
{
"children": [
{}
],
"id": 42,
"isDeleted": true,
"name": "string",
"parentId": 42,
"position": 42
}
]