Request an absence
shiftbase_request_absenceWRITE: add an absence (leave/time-off request) for an employee. By default it is a Pending request for a manager to review; status Approved books it directly (needs the approve-absence permission). The hours per day come from Shiftbase's own expected-hours calculation (the same as shiftbase_get_expected_absence_hours). Needs the Basic plan. POST /absentees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Note from the requester. | |
| status | No | Pending (default) = a request to review; Approved = book it directly. | |
| user_id | Yes | The employee. | |
| end_date | Yes | Last day (yyyy-mm-dd), at most 366 days after start_date. | |
| start_date | Yes | First day (yyyy-mm-dd). | |
| absence_type_id | Yes | Absence type id (shiftbase_list_absence_types). | |
| notify_employee | No | Notify the employee (default false). |