Create absence
papershift_create_absenceWRITE: record an absence (vacation, sick leave, ...) for an employee. Get the absence type id from papershift_list_absence_types and the user id from papershift_list_users. Whether it counts immediately or waits for approval depends on the absence type and the account's approval rules; the employee may be notified. Papershift calculates the paid hours and vacation days. POST /absences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ends_at | Yes | ISO 8601 date-time with a timezone, e.g. 2026-11-02T08:00:00+01:00. | |
| user_id | Yes | Employee the absence is for. | |
| full_day | No | True for whole-day absences. | |
| starts_at | Yes | ISO 8601 date-time with a timezone, e.g. 2026-11-02T08:00:00+01:00. | |
| time_zone | No | IANA time zone of the times, e.g. Europe/Berlin (recommended). | |
| absence_type_id | Yes | Absence type id. |