> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Bulk Publish Scheduled Shifts

> Publishes 1 - 100 scheduled shifts.

`square.bulkPublishScheduledShifts` publishes 1 - 100 scheduled shifts.

## Example

```ts automations/square-bulk-publish-scheduled-shifts.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Bulk Square Publish Scheduled Shifts", () => {
  onDashboardRun({ title: "Bulk Square Publish Scheduled Shifts" })

  square.bulkPublishScheduledShifts({
    scheduledShifts: {
      key: {},
    },
    scheduledShiftNotificationAudience: "AFFECTED",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `TIMECARDS_WRITE`.

| Field                                | Type                                                      | Required | Default    | Description                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------------ | --------------------------------------------------------- | -------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `scheduledShifts`                    | `Record\<string, Square.BulkPublishScheduledShiftsData\>` | Yes      | —          | A map of 1 to 100 key-value pairs that represent individual publish requests. - Each key is the ID of a scheduled shift you want to publish. - Each value is a `BulkPublishScheduledShiftsData` object that contains the `version` field or is an empty object.                                                                               |
| `scheduledShiftNotificationAudience` | `Square.ScheduledShiftNotificationAudience`               | No       | `AFFECTED` | Indicates whether Square should send email notifications to team members and which team members should receive the notifications. This setting applies to all shifts specified in the bulk operation. The default value is `AFFECTED`. See [ScheduledShiftNotificationAudience](#type-scheduledshiftnotificationaudience) for possible values |

Use the official [BulkPublishScheduledShifts reference](https://developer.squareup.com/reference/square/labor-api/bulk-publish-scheduled-shifts) for provider field semantics and limits.

## Output

Returns the official `Square.BulkPublishScheduledShiftsResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
