Get the time off calendar
talenthr_get_calendarWho is off when: employees with their time off requests and the holidays for a date range. Without end_date the range runs to the end of the start month (max 2 years). Without a filter it includes every employee (also terminated). Filter with keys time_off (pending, approved), department, division, location, emp_state and time_off_type (e.g. time_off=pending,approved;department=6), or one employee with employee_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Filter: key=comma-separated ids, keys separated by ';', e.g. location=36;emp_state=1,2,3. Valid keys and ids come from talenthr_get_directory_filters. | |
| end_date | No | Last day, yyyy-mm-dd (default: end of the start month). | |
| start_date | Yes | First day, yyyy-mm-dd. | |
| employee_id | No | Only this employee's calendar. |