curl --request GET \
--url https://{host}/api/v3/departments \
--header 'Authorization: <authorization>'{
"data": {
"items": [
{
"name": "<string>",
"code": "<string>",
"id": 123,
"hierarchy": "<string>",
"parentId": "<string>",
"isActive": true,
"position": 55000000000000000000,
"level": 123,
"sortOrder": 2,
"headID": 123,
"head": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"users": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"currentUsers": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"currentUsersCount": 1
}
]
}
}List all Departments satisfying query filters.
curl --request GET \
--url https://{host}/api/v3/departments \
--header 'Authorization: <authorization>'{
"data": {
"items": [
{
"name": "<string>",
"code": "<string>",
"id": 123,
"hierarchy": "<string>",
"parentId": "<string>",
"isActive": true,
"position": 55000000000000000000,
"level": 123,
"sortOrder": 2,
"headID": 123,
"head": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"users": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"currentUsers": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"currentUsersCount": 1
}
]
}
}API key. Value must be formatted like so: lucca application={api_key}.
ID of the user who is head of the department.
ID of the parent department.
{offset},{limit}. Defaults to 0,1000.
"100,0"
OK
Show child attributes
Was this page helpful?