Leave types
Update a leave type
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
Update a leave type
Update a leave type
PUT
/
leave_types
/
{id}
curl --request PUT \
--url https://api.absentify.com/api/v1/leave_types/{id} \
--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>",
"sync_option": "Disabled"
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
Authorizations
Path Parameters
Body
application/json
Response
200
application/json
Successful response
The response is of type string
.
The response is of type string
.
The response is of type null
.
Was this page helpful?
curl --request PUT \
--url https://api.absentify.com/api/v1/leave_types/{id} \
--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>",
"sync_option": "Disabled"
}'
"3c90c3cc-0d44-4b50-8888-8dd25736052a"