Update a shift
wheniwork_update_shiftChange a shift — reassign it, move it, change position or notes. When I Work requires start_time, end_time and location_id on every update, so fetch the shift first and pass them back. This tool never sends a breaks array; When I Work documents that breaks omitted from an update's breaks list are removed, so re-check the shift's breaks afterwards. When I Work: PUT /2/shifts/{id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Hex colour without #, e.g. cc0000. | |
| notes | No | Shift notes shown to the employee. | |
| site_id | No | Job site for the shift. | |
| user_id | No | The user to assign. 0 (or omitted on create) makes it an open shift. | |
| end_time | Yes | Shift end (required by the API even if unchanged). | |
| shift_id | Yes | The shift id. | |
| is_shared | No | For an open shift: a shared open shift. | |
| published | No | Publish it immediately (default: draft). | |
| break_time | No | Unpaid break length in hours, e.g. 0.5. | |
| start_time | Yes | Shift start (required by the API even if unchanged). | |
| location_id | Yes | The schedule (location) id. | |
| position_id | No | Position for the shift. |