Book a time off request
talenthr_create_time_off_requestWRITE: book a time off request for an employee (talenthr_list_time_off_types gives the type id). Unless preapproved=true, TalentHR automatically E-MAILS THE EMPLOYEE'S MANAGER to approve or reject it. preapproved=true auto-approves it when the key's user is allowed to (so no manager decides): only use it when the user explicitly said the time off is already approved. Dates must be within one year from today and inside a time off cycle. Optionally give amount_options (days per date: 1, 0.5, 0 for non-working days; every date from start to end needs a value); when omitted TalentHR works it out. Cannot be undone through this server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Note for the approver (max 255 characters). | |
| end_date | Yes | Last day off (inclusive), yyyy-mm-dd. | |
| start_date | Yes | First day off, yyyy-mm-dd. | |
| employee_id | Yes | The employee id (from talenthr_list_employees). | |
| preapproved | No | true = auto-approve (no manager e-mail decision). Default false. | |
| amount_options | No | Per-day amounts keyed by yyyy-mm-dd, e.g. {"2026-11-02":1,"2026-11-03":0.5}. Must cover every date from start_date to end_date. | |
| timeoff_type_id | Yes | Time off type id (from talenthr_list_time_off_types). |