book_holiday
Submit a leave request for yourself or others, specifying dates, leave type, and optional details like time of day or reason.
Instructions
Submit a leave request (book time off).
Args:
from_date: Start date YYYY-MM-DD (no time component).
to_date: End date YYYY-MM-DD (no time component).
leave_type_id: The leave type to book (see list_leave_types).
book_for: User, Department or Everyone.
user_or_department_id: ID of the user/department to book for (with
book_for). Omit to book for yourself.
from_time: Part of the start day: "AM", "PM", or minutes since
midnight for an hourly booking.
to_time: Part of the end day: "AM", "PM", or minutes since
midnight for an hourly booking.
reason: Optional reason for the request.
suppress_emails: Admins only — suppress notification emails.
book_as_requestee: Admins only — book as if the requestee made it so the
normal approval flow runs (default is auto-approved by the admin).
override: Admins only — bypass the department max-off limit.
override_locked_days: Admins only — book over locked dates.
override_accrued_allowance: Admins only — bypass accrued-allowance check.
attachment_id: Attach a previously uploaded attachment by ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| to_date | Yes | ||
| to_time | No | ||
| book_for | No | User | |
| override | No | ||
| from_date | Yes | ||
| from_time | No | ||
| attachment_id | No | ||
| leave_type_id | Yes | ||
| suppress_emails | No | ||
| book_as_requestee | No | ||
| override_locked_days | No | ||
| user_or_department_id | No | ||
| override_accrued_allowance | No |