Leave types
Create a leave type
Create a leave type
POST
/
leave_types
Authorizations
X-API-KEY
string
headerrequiredBody
application/json
name
string
requiredMaximum length:
255
color
string
requiredneeds_approval
boolean
requiredmaximum_absent
boolean
requiredleave_unit
enum<string>
requiredAvailable options:
days
, half_days
, hours
, minutes_30
, minutes_15
, minutes_10
, minutes_5
, minutes_1
position
number
requiredtake_from_allowance
boolean
requiredprivacy_hide_leavetype
boolean
requiredoutlook_synchronization_show_as
enum<string>
requiredAvailable options:
free
, tentative
, busy
, oof
, workingElsewhere
, unknown
outlook_synchronization_subject
string | null
requiredicon
enum<string>
requiredAvailable options:
NoIcon
, Umbrella
, Anchor
, Archive
, Award
, Briefcase
, Calendar
, Cast
, Clock
, Coffee
, Compass
, Battery
, Emoji
, Gift
, Frown
, Image
, Sun
, Zap
, Home
, Users
reason_mandatory
boolean
requiredreason_hint_text
string | null
requiredallowance_type_id
string | null
requiredignore_schedule
boolean
requiredignore_public_holidays
boolean
requiredResponse
200 - application/json
The response is of type string
.
Was this page helpful?