HomeGuidesAPI ReferenceChangelogDiscussions
API Reference

Timeoff > LeaveType > Creates

Subscription_type: timeoff/leave_type/create

payload

Callback payload

integer
required

Identifier of the leave type

string
required

Name of the leave type

string

Translated name of the leave type, if available

string
required

Unique identifier of the leave type

string
required

The color associated with this leave type

boolean

Whether the leave type is active

boolean

Whether the leave type is editable

boolean

Whether approval is required for this leave type

boolean

Whether the leave type accrues over time

boolean
required

Whether an attachment is required for this leave type

boolean

Whether endless leave is allowed

boolean

Whether the leave type is restricted

boolean
required

Whether the leave type is visible to employees

boolean
required

Whether the leave type is workable

boolean

Whether the leave type is payable

integer
required

Identifier of the company associated with this leave type

boolean

Whether the attachment is mandatory

allowance_ids
array of integers
required

List of allowance identifiers associated with this leave type

allowance_ids*
boolean

Whether half-day units are enabled for this leave type

integer

Maximum days in cents that can be taken

integer

Minimum days in cents that must be taken

string

Description of the leave type

boolean
required

Whether additional details are required for the leave type

Response
200

Return a 200 status to indicate that the data was received successfully

Payload
Choose an example