Create a leave type

Create a leave type, like "Jury Duty" or "Bereavement". A pay code is created for the type at the same time, and returned as payCode, so you can use it to pay leave hours of this type. The name must be unique, ignoring case, and can't match a system default type. See the Guide to the Leave Types API.

Body Params
string
required
length between 3 and 100

A name for the leave type. Leading and trailing spaces are removed and runs of spaces are collapsed to one. Must be from 3 to 100 characters after that, and unique among the company's leave types, ignoring case.

boolean
required

Whether to show the leave type on pay stubs even when the worker has no leave hours of this type on the stub.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json