Request time off
request_time_offSubmit a time-off request for whole-day or hourly leave with automatic balance and calendar validation to prevent overdraws, weekends, or holidays.
Instructions
Files a time-off request in Woffu. WRITES to the user's record and their manager sees it. type is the leave type by name, exactly as get_time_off_balance lists it (e.g. "Vacaciones"). Whole-day types take from and optionally to for a range; the day count is whatever Woffu charges after its own weekends and holidays, so a Fri–Mon range may cost two days. Hourly types instead take a single from with startTime and endTime. The balance is checked before anything is filed, and whole-day requests are also validated against Woffu's calendar, so an overdraw, a weekend or a holiday is refused with a reason rather than filed. Half-day requests and types that require a document are not supported here. Before calling, show the user the type, dates and any times, and get their confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of a range, inclusive (YYYY-MM-DD). Whole-day types only. Defaults to `from`. | |
| from | Yes | First day (YYYY-MM-DD). | |
| type | Yes | Leave type by name, as get_time_off_balance lists it. | |
| comment | No | Optional note. Do not include unnecessary personal data. | |
| endTime | No | End of an hourly request (HH:MM). Hourly types only. | |
| startTime | No | Start of an hourly request (HH:MM). Hourly types only. |