Create shift
rotacloud_create_shiftWRITE: create a shift on the rota. Leave user_id out for an open shift. Unpublished by default (employees see it once published). POST /shifts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Shift notes shown to the employee. | |
| role_id | No | Role id. | |
| user_id | No | Assigned user id; omit for an open shift. | |
| end_time | Yes | Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z). | |
| published | No | Publish immediately (default false). | |
| start_time | Yes | Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z). | |
| location_id | Yes | Location id. | |
| minutes_break | No | Unpaid break in minutes. |