Departments
Read a department by id
Members
- GETGet all members
- POSTInvite a member
- GETRead a member by id
- PUTUpdate a member
- DELDelete a member
- GETRead a member by Microsoft user id
- GETRead a member by email
- GETRead a member by custom_id
- PUTUpdate approvers for a member
- PUTUpdate a member's allowance
- POSTAdd a member's schedule
- PUTUpdate a member's schedule
Departments
Leave types
Public holidays
Departments
Read a department by id
Read a department by id
GET
/
departments
/
{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"
}
]
}
Authorizations
Path Parameters
Response
200
application/json
Successful response
The response is of type object
.
The response is of type object
.
The response is of type null
.
Was this page helpful?
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"
}
]
}