Skip to main content
GET
/
api
/
v3
/
departments
/
{id}
Get Departement by id
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
  }
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Path Parameters

id
integer
required

ID of the department.

Response

OK

data
The Department resource · object

Departments, to which users must be attached, are used by the different Lucca solutions for different purposes:

  • Define access scopes: for example to restrict the visibility of absences in the Lucca Absences schedule.
  • Filtering data in a report: our different reports generally allow to filter data according to the legal entity, the SSC, but also the department of the user.
  • Build the organization chart in Lucca Core HR. The departments are represented as a hierarchical tree with a parent/child relationship.

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.