curl --request GET \
--url https://{host}/organization/structure/api/departments \
--header 'Authorization: <authorization>'{
"items": [
{
"id": 48,
"name": "IT",
"code": "IT",
"description": null,
"parentId": "/1/2/",
"parentLuccaId": null,
"hierarchy": "/1/2/2/",
"isActive": true,
"headId": 1080,
"createdAt": "2000-01-01T00:00:00+00:00",
"lastModifiedAt": "2000-01-01T00:00:00+00:00",
"sortOrderInSiblings": null
}
],
"count": 1,
"prev": "<string>",
"next": "<string>"
}List departments.
curl --request GET \
--url https://{host}/organization/structure/api/departments \
--header 'Authorization: <authorization>'{
"items": [
{
"id": 48,
"name": "IT",
"code": "IT",
"description": null,
"parentId": "/1/2/",
"parentLuccaId": null,
"hierarchy": "/1/2/2/",
"isActive": true,
"headId": 1080,
"createdAt": "2000-01-01T00:00:00+00:00",
"lastModifiedAt": "2000-01-01T00:00:00+00:00",
"sortOrderInSiblings": null
}
],
"count": 1,
"prev": "<string>",
"next": "<string>"
}Was this page helpful?