Create Time Off Request

Creates a time off request on behalf of an employee. The request is created with status REQUESTED and enters the approval workflow.

OAuth Scopes: time_off:requests.write

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
boolean
Defaults to false

Set to true to include the _links block naming the state transitions available to the caller for this time off request. Also accepts 1, yes and on. Omitted from the response by default.

Body Params

Data contract for creating a time off request on behalf of an employee. Exactly one of 'amount' or 'dailyAmounts' must be supplied.

integer
required

The id of the employee the time off is requested for.

integer
required

The id of the time off category for the request.

date
required

The date the time off starts, in ISO 8601 format (YYYY-MM-DD).

date
required

The date the time off ends (inclusive), in ISO 8601 format (YYYY-MM-DD).

length ≤ 1024

An optional note from the requester. Maximum 1024 characters.

The total amount of time off requested for the whole range, in the category's unit. Supply exactly one of 'amount' or 'dailyAmounts'.

dailyAmounts

The per-day amounts of time off requested, each within the request date range. Supply exactly one of 'amount' or 'dailyAmounts'.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json