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

# Update Announcement

> Change a draft or scheduled announcement, or send it.

Changes a draft or a scheduled announcement. Only the fields you send change.

Once an announcement has been sent, it can't be changed. To take it off the feed, use [Remove Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/remove-announcement.md).

> [!NOTE]
>
> Announcements must be on your workspace's plan. Otherwise every Announcements endpoint returns `403` with "Workspace doesn't have "Announcements" feature activated."

## Permissions

The key acts as its default user, or the user in the `x-client-user` header (who must be in the workspace). That user's role permissions apply.

* **Manage All Announcements**: any announcement in the workspace
* **Create & Manage Own Announcements**: announcements the user created

The audience is narrowed the same way as on [Create Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/create-announcement.md#permissions).

## Path parameters

**workspaceId** `string\<uuid\>` *required*

UUID of the workspace. Must be the workspace your API key is bound to.

**announcementId** `string\<uuid\>` *required*

UUID of the announcement.

## Body

Any of the fields on [Create Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/create-announcement.md), except `id`. At least one is required.

* `publish` sends or reschedules it: `now` sends it straight away, `scheduled` with `sendAt` sets a new send time, and `draft` makes a scheduled announcement a draft again. Left out, it stays as it is.
* `audience` replaces the whole audience. People no longer in it are removed. Left out, the recipients stay as they are.
* `attachments` replaces all attachments. `coverImage: null` removes the cover image, and `expiresAt: null` makes it never expire.

When it's sent with `now`, recipients get a push notification and an email.

Unknown fields are refused.

## Response

Returns `200` with `{ "data": { "announcement": <announcement> } }`, the same as [Get Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/get-announcement.md).

## Errors

Errors return the message at `error.message`.

| Status | When |
| - | - |
| `401` | Invalid client credentials |
| `403` | Announcements isn't on the workspace's plan |
| `403` | The user doesn't have Create & Manage Own Announcements or Manage All Announcements |
| `403` | The announcement was created by someone else and the user doesn't have Manage All Announcements |
| `404` | "Announcement not found." |
| `409` | "Only draft and scheduled announcements can be updated." |
| `409` | The announcement is shared with franchisees or posted to a channel. Change it in the Xenia app |
| `422` | Invalid input, the same as on [Create Announcement](https://docs.xenia.team/api-reference/endpoints/announcements/create-announcement.md#errors) |
| `422` | "At least one recipient is required to publish." Sending or scheduling an announcement that has no recipients |

```bash cURL theme={null}
curl -X PATCH "https://api.xenia.team/api/v1/ops/workspaces/{workspaceId}/announcements/{announcementId}" \
  -H "x-client-key: YOUR_CLIENT_KEY" \
  -H "x-client-secret: YOUR_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Holiday hours (updated)",
    "publish": "scheduled",
    "sendAt": "2026-12-20T09:00:00-05:00"
  }'
```

```json 200 theme={null}
{
  "data": {
    "announcement": {
      "id": "6a1f…",
      "title": "Holiday hours (updated)",
      "status": "scheduled",
      "pinned": true,
      "sendAt": "2026-12-20T14:00:00.000Z",
      "publishedNow": false,
      "expiresAt": "2026-12-26T00:00:00.000Z",
      "createdAt": "2026-12-01T14:58:12.401Z",
      "createdBy": { "id": "9d03…", "firstName": "Alex", "lastName": "Kim" },
      "requireAcknowledgement": true,
      "recipientCount": 12,
      "openedCount": 0,
      "acknowledgedCount": 0,
      "description": "<p>All stores close at 6 PM on Dec 24.</p>",
      "coverImage": null,
      "color": { "bgColor": "#FFFFFF", "color": "#011B31" },
      "attachments": [],
      "requireSignature": false,
      "requirePhoto": false,
      "allowMultiplePhotos": false,
      "photoLimit": 1,
      "requireVideo": false,
      "audience": {
        "roles": { "roles": ["5c90…"], "locations": ["8f1c…"], "locationGroups": [] }
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.