Get Department Details
You can use this endpoint to call up a single department.
Request
GET /api/v1/departments/:id
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/departments/1' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'
Response
{
"data": {
"id": 1,
"parent_id": null,
"name": "Company GmbH",
"description": null,
"comments": null,
"status": null,
"manager": [
{
"username": "john.doe",
"firstname": "John",
"lastname": "Doe",
"personal_number": "1",
"email": "john.doe@company.com"
},
{
"username": "jane.smith",
"firstname": "Jane",
"lastname": "Smith",
"personal_number": "2",
"email": "jane.smith@company.com"
}
],
"children_count": 10,
"created": null,
"modified": "2023-12-21T07:52:50.000000Z"
}
}