Add Leave Type

Allow customers to add specific leave type by country.

  • day_type: Working/Calendar

  • require_attachment: Whether an attachment is required when applying for this leave type.

  • allow_negative_balance: Whether this leave type allows a negative balance.

post

Authentication: required

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
customer_idinteger · int64Required
countrystringRequired
langstringOptionalDefault: EN
leave_typestringRequired
day_typestringOptional
notesstringOptional
require_attachmentbooleanOptionalDefault: false
allow_negative_balancebooleanOptionalDefault: false
system_updatebooleanOptionalDefault: false
calculation_typestringOptionalDefault: Work Days
Responses
chevron-right
200

Success!

application/json
idinteger · int64OptionalDefault: 2059
namestringOptionalDefault: Sick Leave
notesstringOptionalDefault: Employees are entitled to 14 days of Sick Leave
countryinteger · int64OptionalDefault: 53
customerinteger · int64OptionalDefault: 255
day_typestringOptionalDefault: Working
system_updatebooleanOptional
negative_leavebooleanOptional
platform_vendorinteger · int64OptionalDefault: 162
require_attachmentbooleanOptionalDefault: 1
leave_calculation_typestringOptionalDefault: Work Days
post
/add-leave-type

Last updated