Add time off
add_time_offBlock a staff member's calendar for full days off or specific hours so no one can book them; existing appointments are rejected, and the block can be removed later.
Instructions
Block a staff member's calendar so no one can book it: whole days off or a few hours.
Two dates (YYYY-MM-DD) add whole days of time off, like Staff > Shifts. Two date-times on the same day block those hours in the calendar, like a time reservation. Booksy refuses a block over existing appointments. It reaches no client; remove_time_off takes it back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Last day off, inclusive (YYYY-MM-DD), or the end of the blocked hours on the same day. | |
| start | Yes | A day (YYYY-MM-DD) for whole days off, or an ISO 8601 date-time to block hours. | |
| reason | No | Whole days: vacation, sick_day, personal_day, training or other (other text is kept as a note). Hours: any label, e.g. Lunch. | |
| staff_id | Yes | Staff ID from list_staff. |