Creates a new Shift.
A Shift represents a complete workday for a single employee.
You must provide the following values in your request to this
endpoint:
location_idemployee_idstart_at
An attempt to create a new Shift can result in a BAD_REQUEST error when:
- The
statusof the newShiftisOPENand the employee has another shift with anOPENstatus. - The
start_atdate is in the future. - The
start_atorend_atdate overlaps another shift for the same employee. - The
Breakinstances are set in the request and a breakstart_atis before theShift.start_at, a breakend_atis after theShift.end_at, or both.