Leave types
Get all leave types
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
Leave types
Get all leave types
Get all leave types
GET
/
leave_types
curl --request GET \
--url https://api.absentify.com/api/v1/leave_types \
--header 'X-API-KEY: <api-key>'
[
{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"color": "<string>",
"icon": "<string>",
"needs_approval": true,
"deleted": true,
"deleted_at": "2023-11-07T05:31:56Z",
"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"
}
}
]
Authorizations
Response
200
application/json
Successful response
The response is of type object[]
.
Was this page helpful?
curl --request GET \
--url https://api.absentify.com/api/v1/leave_types \
--header 'X-API-KEY: <api-key>'
[
{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"color": "<string>",
"icon": "<string>",
"needs_approval": true,
"deleted": true,
"deleted_at": "2023-11-07T05:31:56Z",
"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"
}
}
]