curl --request POST \
--url https://api.absentify.com/api/v1/departments \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"custom_id": "<string>",
"default_allowance": 123,
"maximum_absent": 123,
"approval_process": "Linear_all_have_to_agree",
"manager_member": [
{
"member_id": "<string>",
"predecessor_manager_id": "<string>"
}
],
"default_department_allowances": [
{
"id": "<string>",
"value": 123
}
]
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Create a department
curl --request POST \
--url https://api.absentify.com/api/v1/departments \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"custom_id": "<string>",
"default_allowance": 123,
"maximum_absent": 123,
"approval_process": "Linear_all_have_to_agree",
"manager_member": [
{
"member_id": "<string>",
"predecessor_manager_id": "<string>"
}
],
"default_department_allowances": [
{
"id": "<string>",
"value": 123
}
]
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Successful response
The response is of type string<uuid>
.
Was this page helpful?