curl --request GET \
--url https://{host}/api/v3/departments/{id} \
--header 'Authorization: <authorization>'{
"data": {
"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
}
}Retrieve a single Department by its unique identifier.
curl --request GET \
--url https://{host}/api/v3/departments/{id} \
--header 'Authorization: <authorization>'{
"data": {
"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 department.
OK
Departments, to which users must be attached, are used by the different Lucca solutions for different purposes:
NB: You can have up to 9 levels of departments, and up to 99 departments under a single parent department. However, limiting the number of levels to 7 is recommended.
Show child attributes
{
"id": 2,
"name": "Administration",
"code": "Administration",
"hierarchy": "/1.0/",
"parentId": "/",
"position": 10000000000000000000,
"sortOrder": 1,
"level": 1,
"isActive": true,
"headID": null,
"head": null,
"users": [
{
"id": 11,
"name": "Daniel Hernandez",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/11"
},
{
"id": 36,
"name": "henri paul",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/36"
}
],
"currentUsers": [
{
"id": 11,
"name": "Daniel Hernandez",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/11"
},
{
"id": 36,
"name": "henri paul",
"url": "https://sandbox.ilucca-demo.net/api/v3/users/36"
}
],
"url": "https://sandbox.ilucca-demo.net/api/v3/departments/2"
}Was this page helpful?