Search Employee Time Off Days
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.
HttpBearerAuthAuthorizationBearer <JWT>application/json- body
date_from*Date Fromdatedate_to*Date Todateemployee_ids?array<>|nullcategory_ids?array<>|nulldepartment_ids?array<>|nullteam_ids?array<>|nulldivision_ids?array<>|nulllocation_ids?array<>|nullSuccessful Response
application/json- response
[index: integer]?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"}'[ { "employee_id": 0, "days": [ { "date": "string", "time_off_category_id": 0, "is_pending": true } ] }]Get Time Off Categories With Balance For Employee POST
For a terminated employee, if `date_balance` is after the termination date, the balance is calculated on the termination date under the policy assigned on that date.
Create Time Off Request POST
Creates a request for `employee_id` and sends it through the organization's approval flow; the API user is saved as its author. Requires permission `employee_time_off=edit` or `approve_leaves_as_admin=edit` for the employee. A request that breaks the leave policy is 422 with the reason code.
