Skip to main content
PUT
Update a leave type

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
name
string
Maximum string 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
Required range: -9007199254740991 <= x <= 9007199254740991
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
counts_as_leave
boolean
allow_representative_overlap
boolean

Response

string<uuid> | null

Successful response

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$