Create a time-off request
wheniwork_create_time_off_requestCreate a time-off request for a user (default the calling user). It starts pending; cancel it with wheniwork_update_time_off_request (status 1). Get type ids from wheniwork_list_time_off_types. When I Work: POST /2/requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paid | No | Whether it is paid time off. | |
| hours | No | Hours of paid time off to use. | |
| type_id | No | Time-off type id (Personal, Sick, Holiday...). | |
| user_id | No | Who is taking time off (default the calling user). | |
| end_time | Yes | End of the time off, full date-time. | |
| start_time | Yes | Start of the time off, full date-time. |