Skip to Content
API ReferenceCalendar Holidays

Search Calendar Holiday Dates

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

Returns the dates of holiday calendars between date_from and date_to inclusive, at most 366 days. Empty calendar_holiday_ids returns the dates of all calendars. type: non_working is a public holiday, a day off; working is a working day moved onto a weekend; compensated is a day off moved from a public holiday that fell on a weekend. Requires permission manage_holidays=edit.

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
date_from*Date From
Formatdate
date_to*Date To
Formatdate
calendar_holiday_ids?array<>|null

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X POST 'https://api.skailer.com/api/v1/calendar-holidays/dates/search' \  -H 'Content-Type: application/json' \  -d '{  "date_from": "2019-08-24",  "date_to": "2019-08-24"}'
Example Response
[  {    "id": 0,    "calendar_holiday_id": 0,    "date": "string",    "title": "string",    "type": "working"  }]