Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Labor

  • List break types

  • Create break type

  • Delete break type

  • Get break type

  • Update break type

  • Create scheduled shift

  • Bulk publish scheduled shifts

  • Search scheduled shifts

  • Retrieve scheduled shift

  • Update scheduled shift

  • Publish scheduled shift

  • List team member wages

  • Get team member wage

  • Create timecard

  • Search timecards

  • Delete timecard

  • Retrieve timecard

  • Update timecard

  • List workweek configs

  • Update workweek config

  • Webhooks

  • labor.scheduled_shift.created

  • labor.scheduled_shift.deleted

  • labor.scheduled_shift.published

  • labor.scheduled_shift.updated

  • labor.timecard.created

  • labor.timecard.deleted

  • labor.timecard.updated

<- Labor API

Labor API

All versions ->

Publish scheduled shiftBeta

POST

 /v2/labor/scheduled-shifts/{id}/publish

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.

Permissions:TIMECARDS_WRITE

Guide

Scheduling with the Labor API

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

id

string

Required

The ID of the scheduled shift to publish.

Link to section

Request body

Link to section

idempotency_key

string

Required

A unique identifier for the PublishScheduledShift request, used to ensure the idempotency of the operation.

Min Length
1
Max Length
128
Link to section

version

integer(32-bit)

The current version of the scheduled shift, used to enable optimistic concurrency control. If the provided version doesn't match the server version, the request fails. If omitted, Square executes a blind write, potentially overwriting data from another publish request.

Link to section

scheduled_shift_notification_audience

string

Indicates whether Square should send an email notification to team members and which team members should receive the notification. The default value is AFFECTED.

Link to section

Response fields

Link to section

scheduled_shift

The published scheduled shift.

Link to section

errors

Any errors that occurred during the request.

Link to section

Examples

All versions ->

POST /v2/labor/scheduled-shifts/{id}/publish
curl https://connect.squareup.com/v2/labor/scheduled-shifts/K0YH4CV5462JB/publish \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "idempotency_key": "HIDSNG5KS478L", "version": 2, "scheduled_shift_notification_audience": "ALL" }'

Response JSON

{ "scheduled_shift": { "id": "K0YH4CV5462JB", "draft_shift_details": { "team_member_id": "ormj0jJJZ5OZIzxrZYJI", "location_id": "PAA1RJZZKXBFG", "job_id": "FzbJAtt9qEWncK1BWgVCxQ6M", "start_at": "2019-01-25T03:11:00-05:00", "end_at": "2019-01-25T13:11:00-05:00", "notes": "Dont forget to prep the vegetables", "is_deleted": false, "timezone": "America/New_York" }, "published_shift_details": { "team_member_id": "ormj0jJJZ5OZIzxrZYJI", "location_id": "PAA1RJZZKXBFG", "job_id": "FzbJAtt9qEWncK1BWgVCxQ6M", "start_at": "2019-01-25T03:11:00-05:00", "end_at": "2019-01-25T13:11:00-05:00", "notes": "Dont forget to prep the vegetables", "is_deleted": false, "timezone": "America/New_York" }, "version": 2, "created_at": "2019-02-25T03:11:00-05:00", "updated_at": "2019-02-25T03:11:00-05:00" } }