latestOpenAPI 3.1.02026-08-22695252.1 KB

ef777d51e6f2

Leave types

Update a leave type

Update a leave type

put/leave_types/{id}

Path parameters

idstring uuid required

Request body

namestring
colorstring
needs_approvalboolean
maximum_absentboolean
leave_unit'days' | 'half_days' | 'hours' | 'minutes_30' | 'minutes_15' | 'minutes_10' | 'minutes_5' | 'minutes_1'
positioninteger
take_from_allowanceboolean
privacy_hide_leavetypeboolean
outlook_synchronization_show_as'free' | 'tentative' | 'busy' | 'oof' | 'workingElsewhere' | 'unknown'
outlook_synchronization_subjectstring nullable
icon'NoIcon' | 'Umbrella' | 'Anchor' | 'Archive' | 'Award' | 'Briefcase' | 'Calendar' | 'Cast' | 'Clock' | 'Coffee' | 'Compass' | 'Battery' | 'Emoji' | 'Gift' | 'Frown' | 'Image' | 'Sun' | 'Zap' | 'Home' | 'Users'
reason_mandatoryboolean
reason_hint_textstring nullable
allowance_type_idstring nullable
sync_option'Disabled' | 'All' | 'OnlyApproved'
counts_as_leaveboolean
allow_representative_overlapboolean

Response

Successful response

string uuid nullable required