GET
/
api
/
v3
/
departments
/
{id}
curl --request GET \
  --url https://{host}/api/v3/departments/{id} \
  --header 'Authorization: <authorization>'
{
  "data": {
    "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"
  }
}

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

200
application/json

OK

The response is of type object.