Creates a new Shift
.
POST
/v2/labor/shifts
Creates a new Shift
.
A Shift
represents a complete workday for a single team member. You must provide the following values in your request to this endpoint:
location_id
team_member_id
start_at
An attempt to create a new Shift
can result in a BAD_REQUEST
error when:
status
of the new Shift
is OPEN
and the team member has another shift with an OPEN
status.start_at
date is in the future.start_at
or end_at
date overlaps another shift for the same team member.Break
instances are set in the request and a break start_at
is before the Shift.start_at
, a break end_at
is after the Shift.end_at
, or both.