Add unavailability for an employee
deputy_add_unavailabilityRecord a time an employee cannot work (one-off, or recurring with an RFC 5545-style rule such as FREQ WEEKLY, INTERVAL 1, BYDAY MO). Auto-scheduling then skips them. Deputy: POST /api/v1/supervise/unavail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Note the manager sees. Default empty. | |
| end_time | Yes | Unavailability end: a unix timestamp in seconds, or an ISO 8601 datetime (include an offset for local times). | |
| recurrence | No | Omit for a one-off block. | |
| start_time | Yes | Unavailability start: a unix timestamp in seconds, or an ISO 8601 datetime (include an offset for local times). | |
| employee_id | Yes | The employee id. |