timeOff

Create time-off request

Changed on

Creates a time-off request for a worker under a policy; without a status it is created as approved. Use POST /rest/time_offs/validate first to check the request without creating it. A request created as REQUESTED stays pending until it is reviewed with POST /rest/time_offs/review, or handled through the Deel approval flow when you opt into it.

Token scopes: time-off:write, worker:write

post/time_offs

Request

  • Base URL
    https://api.letsdeel.com/rest
  • Auth
    HTTP bearer

Request body

object required
data, TimeOffsPostRequestBodyContentApplicationJsonSchemaData

The time off request data

Response

Time off creation data

TimeOffCreateTimeOffRequestResponse201 required

The list of created time offs. Depending on the selected dates, a time off can be split into more than one request.

time_offs, TimeOffsPostResponsesContentApplicationJsonSchemaTimeOffsItems[] required

The list of created time offs. Depending on the selected dates, a time off can be split into more than one request.

Changes

    • info

      added the new optional request property data/custom_field_values/items/field_key

    • info

      the request property data/custom_field_values/items/field_id became optional