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

X-API-KEY
string
header
required

Path Parameters

id
string
required

Body

application/json
name
string
Maximum length: 255
color
string
needs_approval
boolean
maximum_absent
boolean
leave_unit
enum<string>
Available options:
days,
half_days,
hours,
minutes_30,
minutes_15,
minutes_10,
minutes_5,
minutes_1
position
integer
take_from_allowance
boolean
privacy_hide_leavetype
boolean
outlook_synchronization_show_as
enum<string>
Available options:
free,
tentative,
busy,
oof,
workingElsewhere,
unknown
outlook_synchronization_subject
string | null
icon
enum<string>
Available options:
NoIcon,
Umbrella,
Anchor,
Archive,
Award,
Briefcase,
Calendar,
Cast,
Clock,
Coffee,
Compass,
Battery,
Emoji,
Gift,
Frown,
Image,
Sun,
Zap,
Home,
Users
reason_mandatory
boolean
reason_hint_text
string | null
allowance_type_id
string | null
sync_option
enum<string>
Available options:
Disabled,
All,
OnlyApproved

Response

200
application/json
Successful response

The response is of type string.