Skip to Content
API ReferenceTime Off

Search Employee Time Off Days

POST
/api/v1/time-off/availability/search

Returns only the dates a person is on time off, each with its time_off_category_id. Free days, weekends, public holidays and part-time schedules are not taken into account. Requires permission access_to_leave_timeline=edit.

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
date_from*Date From
Formatdate
date_to*Date To
Formatdate
employee_ids?array<>|null
category_ids?array<>|null
department_ids?array<>|null
team_ids?array<>|null
division_ids?array<>|null
location_ids?array<>|null

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X POST 'https://api.skailer.com/api/v1/time-off/availability/search' \  -H 'Content-Type: application/json' \  -d '{  "date_from": "2019-08-24",  "date_to": "2019-08-24"}'
Example Response
[  {    "employee_id": 0,    "days": [      {        "date": "string",        "time_off_category_id": 0,        "is_pending": true      }    ]  }]