curl --request POST \
--url https://api.absentify.com/api/v1/leave_types \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"color": "<string>",
"needs_approval": true,
"maximum_absent": true,
"leave_unit": "days",
"position": 123,
"take_from_allowance": true,
"privacy_hide_leavetype": true,
"outlook_synchronization_show_as": "free",
"outlook_synchronization_subject": "<string>",
"icon": "NoIcon",
"reason_mandatory": true,
"reason_hint_text": "<string>",
"allowance_type_id": "<string>",
"ignore_schedule": true,
"sync_option": "Disabled",
"ignore_public_holidays": true,
"reason_visibility_public": true
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Create a leave type
curl --request POST \
--url https://api.absentify.com/api/v1/leave_types \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"color": "<string>",
"needs_approval": true,
"maximum_absent": true,
"leave_unit": "days",
"position": 123,
"take_from_allowance": true,
"privacy_hide_leavetype": true,
"outlook_synchronization_show_as": "free",
"outlook_synchronization_subject": "<string>",
"icon": "NoIcon",
"reason_mandatory": true,
"reason_hint_text": "<string>",
"allowance_type_id": "<string>",
"ignore_schedule": true,
"sync_option": "Disabled",
"ignore_public_holidays": true,
"reason_visibility_public": true
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Successful response
The response is of type string<uuid>
.
Was this page helpful?