Skip to Content
API Versions

v1.2.7

Public API - create time-off requests on behalf of employees.

API v1.2.7 New features

POST /api/v1/time-off/requests - create a time-off request

  • Creates a time-off or day-off request for employee_id in the category category_id for the period date_from - date_to, with an optional comment.
  • The request always goes through the organization's approval flow, the same as a request created in the app. The approval flow cannot be bypassed: any extra field in the body, including is_bypass_approval_flow, returns 422.
  • The leave policy is checked as in the app: balance, overlapping requests, past dates, probation. A request that breaks the policy returns 422 with the reason in validation_errors[].code and is not saved.
  • The API user is saved as the author of the request.
  • Requires employee_time_off=edit for the employee or approve_and_reject_leaves=edit; otherwise 403.
  • Returns the request in the same format as POST /api/v1/time-off/logs/search. See Time Off.

On this page