Skip to Content
API ReferenceCalendar Holidays

Search Employee Calendar Holidays

POST
/api/v1/calendar-holidays/employees/search

Returns the current holiday calendar of each employee: the first calendar whose assignment rules match the employee. calendar_holiday_id is null when no calendar applies. The calendar is not historical: after a relocation past dates are resolved by the new calendar. Requires permission manage_holidays=edit.

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
page_size?Page Size
Range1 <= value <= 500
Default20
employee_ids?array<>|null
without_calendar_holiday?Without Calendar Holiday
Defaultfalse

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/calendar-holidays/employees/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "items": [    {      "employee_id": 0,      "calendar_holiday_id": 0    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}