Labor
PublishScheduledShift
Publishes a scheduled shift. When a scheduled shift is published, Square keeps the draft_shift_details field as is and copies it to the published_shift_details field.
post/v2/labor/scheduled-shifts/{id}/publish
Path parameters
idstring required
The ID of the scheduled shift to publish.
Request body
Example request
{
"idempotency_key": "HIDSNG5KS478L",
"scheduled_shift_notification_audience": "ALL",
"version": 2
}Response
Success
Example response
{
"scheduled_shift": {
"created_at": "2019-02-25T03:11:00-05:00",
"draft_shift_details": {
"end_at": "2019-01-25T13:11:00-05:00",
"is_deleted": false,
"job_id": "FzbJAtt9qEWncK1BWgVCxQ6M",
"location_id": "PAA1RJZZKXBFG",
"notes": "Dont forget to prep the vegetables",
"start_at": "2019-01-25T03:11:00-05:00",
"team_member_id": "ormj0jJJZ5OZIzxrZYJI",
"timezone": "America/New_York"
},
"id": "K0YH4CV5462JB",
"published_shift_details": {
"end_at": "2019-01-25T13:11:00-05:00",
"is_deleted": false,
"job_id": "FzbJAtt9qEWncK1BWgVCxQ6M",
"location_id": "PAA1RJZZKXBFG",
"notes": "Dont forget to prep the vegetables",
"start_at": "2019-01-25T03:11:00-05:00",
"team_member_id": "ormj0jJJZ5OZIzxrZYJI",
"timezone": "America/New_York"
},
"updated_at": "2019-02-25T03:11:00-05:00",
"version": 2
}
}