Add Leave Type
Adds a new leave type to your company. Shared rules: see Writing data.
namemust be unique in the company, ignoring upper/lower case and outer spaces. A second leave type with the same name is refused with400, so repeating is harmless.leave_typeis the category:privileged_leave,sick_leave,casual_leaveorunpaid_leave.- Leave type names are matched exactly (case-sensitive) elsewhere; see
GET /leave/typefor the names in use.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
name
Leave type name. Unique in the company, ignoring case and outer spaces.
leave_type
Leave category.
Allowed values:
Response
The leave type was created.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
