List time off
list_time_offLists staff time off and blocked calendar hours across a date range of up to 31 days, optionally filtered to one staff member, so you can check availability before scheduling.
Instructions
Staff time off and blocked hours in a date range.
Lists time off from Shifts (kind time_off: dates, hours only when it is part of a day) and blocked hours in the calendar (kind block: date-times) between two days, 31 at most. time_off_id goes to remove_time_off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last day, inclusive. At most 31 days after from. | |
| from | Yes | First day, inclusive. | |
| staff_id | No | Only one staff member, from list_staff. |