Skip to main content
PATCH
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.
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.

Path parameters

string<uuid>
required
UUID of the workspace. Must be the workspace your API key is bound to.
string<uuid>
required
UUID of the announcement.

Body

Any of the fields on Create Announcement, 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.

Errors

Errors return the message at error.message.