curl --request GET \
--url https://api.absentify.com/api/v1/departments/{id} \
--header 'X-API-KEY: <api-key>'
{
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"approval_process": "Linear_all_have_to_agree",
"maximum_absent": 123,
"members": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"custom_id": "<string>",
"manager_type": "Member"
}
]
}
Read a department by id
curl --request GET \
--url https://api.absentify.com/api/v1/departments/{id} \
--header 'X-API-KEY: <api-key>'
{
"id": "<string>",
"custom_id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"approval_process": "Linear_all_have_to_agree",
"maximum_absent": 123,
"members": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>",
"custom_id": "<string>",
"manager_type": "Member"
}
]
}
Successful response
The response is of type object
.
Was this page helpful?