Create Override Shift
create_override_shiftCreate an override shift for a schedule using user and start/end times; overlapping overrides are deleted and replaced, while identical resubmissions return the existing shift.
Instructions
Creates a new override shift from provided data. If any existing override shifts overlap with the specified time range, they will be automatically deleted and replaced by the new override. This endpoint is idempotent: re-sending an identical override (same user and same start/end time) returns the existing override with a 200 status and does not recreate it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| schedule_id | Yes | Required. ID of the schedule (fills `{schedule_id}` in /v1/schedules/{schedule_id}/override_shifts). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||