Partially update an announcement
PATCH
/api/announcements/{id}
deprecated
Requires: Announcements.Management, Announcements.Management.Update, merchant scope.
Change some fields of an existing announcement without resending the rest. Send an RFC 7396 merge patch: a field you omit keeps its current value, and an array you send replaces the stored array outright. Sending null clears a field that accepts null, while a field this endpoint requires rejects null and fails validation rather than being cleared. The schema publishes every field that rejects null as not nullable.
Signed in, you can send this request to your own sandbox merchant from the console and read the answer. Sign in to try it.
Example request
Every block below sends the same request. Replace {{BASE_URL}} with the address of the API you are calling and {{API_KEY}} with your own key.
The request body is a UpdateAnnouncementDtoMergePatch. See the Request body section below for its fields.
Parameters
Request body
application/merge-patch+json
, required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
title
required |
string | The announcement title.
min length 3max length 256
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
body
required |
string | The announcement body content (supports Markdown).
Conditional: When ShowOnSignInPage is true.
min length 10max length 8192
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
scope
required |
AnnouncementScope AnnouncementScope | The organizational scope of the announcement.
Conditional: When ShowOnSignInPage is true.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
priority
required |
AnnouncementPriority AnnouncementPriority | The priority level of the announcement.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
displayOptions
required |
AnnouncementDisplayOptions AnnouncementDisplayOptions | How the announcement should be displayed to users.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
resellerId
required |
string (uuid) | The reseller ID for reseller-scoped announcements.
Required when Scope is Reseller.
Required: When Scope == Reseller.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
merchantId
required |
string (uuid) | The merchant ID for merchant-scoped announcements.
Required when Scope is Merchant.
Required: When Scope == Merchant.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
startDateUtc
required |
string (date-time) | When the announcement becomes active. Null means immediately active.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
endDateUtc
required |
string (date-time) | When the announcement expires. Null means no expiration.
Conditional: When StartDateUtc is not null and EndDateUtc is not null. Must be > .
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
isEnabled
required |
boolean | Whether the announcement is enabled. Defaults to true.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
externalLinkUrl
required |
string | Optional external link URL (e.g., "Learn more" link).
Must be a valid HTTPS URL.
Conditional: When ExternalLinkUrl is not empty.
Conditional: When ExternalLinkUrl is not null. Max length: 2048.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
externalLinkText
required |
string | Optional external link display text.
Conditional: When ExternalLinkText is not null. Max length: 256.
Conditional: When ExternalLinkUrl is not empty.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
targetAudience
required |
AnnouncementTargetAudienceCreateOrUpdateDtoMergePatch AnnouncementTargetAudienceCreateOrUpdateDtoMergePatch | The target audience configuration for narrowing within scope.
Conditional: When ShowOnSignInPage is true.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
Fields of AnnouncementTargetAudienceCreateOrUpdateDtoMergePatch:
This body has no documented fields. | ||||||||||||||||||||
showOnSignInPage
required |
boolean | Whether the announcement is shown as a banner on the sign-in page, where every visitor sees it
before signing in. Defaults to false; a full update that omits it turns the banner off. Turning it
on, writing sign-in page links, or updating an announcement already on the sign-in page needs the
`Announcements.Scopes.PublishToSignInPage` permission. With it on, the
scope must be Host or Tenant, the audience type must be All, and the body must be at most 280
characters. The banner's button is the external link.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
signInPageLinks
required |
array of AnnouncementSignInLinkDto array of AnnouncementSignInLinkDto | Up to 3 secondary links the sign-in page banner shows beneath its text. Each needs a label and
an HTTPS URL. Kept while the banner is off. Omitted or null means no links.
nullable
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
Fields of each AnnouncementSignInLinkDto:
This body has no documented fields. | ||||||||||||||||||||
concurrencyStamp
required |
string | Concurrency stamp for optimistic locking.
Values:
Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
| ||||||||||||||||||
This request body has no documented fields.
Responses
Errors
A failed request returns the platform error envelope. The
error reference lists every value
error.code can carry and shows the four response shapes.
Authentication
ApiKeywith scopes