Create a shift
deputy_create_shiftAdd a shift to the roster, assigned to an employee or left open. Created as a DRAFT unless publish is true (publishing can notify the employee). Deputy returns an empty 200 on success — use deputy_list_shifts to find the new shift's id. Deputy: POST /api/v1/supervise/roster.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| open | No | Show the shift as open for employees to claim. | |
| area_id | Yes | Area (OperationalUnit id) the shift is for. | |
| comment | No | Comment shown on the shift. | |
| publish | No | Publish now. Publishing can notify the employee. Default false (draft). | |
| end_time | Yes | Shift end: a unix timestamp in seconds, or an ISO 8601 datetime (include an offset for local times). | |
| confirmed | No | Mark the shift as confirmed. | |
| start_time | Yes | Shift start: a unix timestamp in seconds, or an ISO 8601 datetime (include an offset for local times). | |
| employee_id | No | Employee to put on the shift. Omit (and set open: true) for an unfilled shift. | |
| force_overwrite | No | Overwrite a clashing shift for the same employee. Default false. | |
| mealbreak_minutes | No | Unpaid meal break length in minutes. |