---
title: "Publish multiple shifts"
method: POST
path: "/api/serviceattendance/processes/shifts/publishShifts"
tags: ["shifts"]
---

# Publish multiple shifts

`POST /api/serviceattendance/processes/shifts/publishShifts`

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/serviceattendance/processes/shifts/publishShifts`
- Auth: HTTP bearer

## Request body

- object
  - `shiftUuids` string[], required: The set of shift identifiers to publish
  - `shiftCampaign` object: Creates a shift campaign that holds the open claimable shifts this publish leaves, until its first stage releases. The timezone must be one of the published locations.
    - `timezone` string, required
    - `stages` object[], required
      - `uuid` string, uuid
      - `order` integer, required
      - `releaseAt` string, date-time, required

## Response `200`

First runs shift rule evaluation and if any blockers found it returns ruleResults otherwise just a 200 success response

- object
  - `data` object, required
    - `ruleResults` object[]: bulk shift rule evaluation results
      - `shiftUuid` string, required
      - `blockers` object[], required
      - `warnings` object[], required
    - `success` boolean
    - `shifts_url` string, nullable: URL to view shifts in the schedule page
    - `asOf` string, date-time: Server time before the publish wrote anything; shifts with a later lastUpdatedAt changed since
  - `meta` ResponsesPartMeta, required
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
