Search Calendar Holiday Dates
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.
HttpBearerAuthAuthorizationBearer <JWT>application/json- body
date_from*Date Fromdatedate_to*Date Todatecalendar_holiday_ids?array<>|nullSuccessful Response
application/json- response
[index: integer]?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"}'[ { "id": 0, "calendar_holiday_id": 0, "date": "string", "title": "string", "type": "working" }]Get All Calendar Holidays GET
Returns the holiday calendars of the company. Which calendar applies to an employee: `POST /api/v1/calendar-holidays/employees/search`. Requires permission `manage_holidays=edit`.
Search Employee Calendar Holidays POST
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`.
