Update a shift
deputy_update_shiftChange an existing shift's times, area, employee, break or comment. Send the full intended shift (same fields as create) — Deputy's update is the add call with the shift id. Deputy: POST /api/v1/supervise/roster with intRosterId.
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). | |
| shift_id | Yes | The shift (Roster) id. | |
| 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. |