English
cURL
curl --request GET \ --url https://api.absentify.com/api/v1/leave_types/{id} \ --header 'X-API-KEY: <api-key>'
{ "id": "<string>", "name": "<string>", "createdAt": "<string>", "updatedAt": "<string>", "color": "<string>", "icon": "<string>", "needs_approval": true, "deleted": true, "deleted_at": "<string>", "deleted_by": { "id": "<string>", "name": "<string>", "email": "<string>" }, "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>", "allowance_type": { "id": "<string>", "name": "<string>", "ignore_allowance_limit": true, "allowance_unit": "days" } }
Read a leave type by id
Successful response
Show child attributes
days
half_days
hours
minutes_30
minutes_15
minutes_10
minutes_5
minutes_1
free
tentative
busy
oof
workingElsewhere
unknown
Was this page helpful?