Mark Announcement Read
Beta/v1/messaging/announcements/{id}/actions/readIdempotent with Idempotency-Key header. Learn more
Marks an announcement as read for the calling user, as when they open it.
Reading also marks the announcement seen if it was not already, and leaves it in the feed until it is dismissed. Repeating the call keeps the original read time. A caller with no user of their own in the account, such as an API key, has no state to record and gets a not-found error.
idstringAnnouncement ID.
include[]optional arrayenumValues:resourceSub-objects to expand in the response. When omitted, sub-objects are returned as null.
idstringAnnouncement ID.
objectstringenumValues:announcementResource type identifier.
scopestringenumValues:accountplatformWho the announcement reaches.
account: published to a single account and shown only to that account's users.platform: published by OpenMRP and shown to every user across all accounts.
categorystringenumValues:chat.messagechat.mentionchat.addedThe kind of event the announcement is about.
Announcements draw on the same categories as notifications, such as system.broadcast or order.updated, and the category is chosen by whoever publishes the announcement. The set is open-ended and may grow over time, so clients should tolerate values they do not recognize.
titlestringShort headline shown in the feed.
bodystringnullableSupporting detail shown beneath the title.
statusstringenumValues:unseenseenreadWhere the announcement is in its lifecycle for the calling user.
unseen: not yet surfaced to the caller.seen: surfaced in the caller's feed but not opened.read: explicitly opened by the caller.dismissed: removed from the caller's feed.
The status is derived from the caller's own seen, read, and dismissed timestamps and only ever moves forward, so the same announcement can show a different status for each user in the account.
prioritystringenumValues:lownormalhighHow prominently the announcement should be surfaced, from low through urgent.
resourceentityExpandablenullableThe resource the announcement is about, which the client can link to.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
publish_atstring (date-time)When the announcement becomes visible in the feed.
An announcement scheduled for the future is not returned by the announcement endpoints until this time passes.
expires_atstring (date-time)nullableWhen the announcement stops being shown.
Once it expires the announcement leaves every user's feed and can no longer be retrieved; an announcement with no expiry stays until each user dismisses it.
seen_atstring (date-time)nullableWhen the calling user first saw the announcement.
read_atstring (date-time)nullableWhen the calling user opened the announcement.
dismissed_atstring (date-time)nullableWhen the calling user dismissed the announcement.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
Responses
Successful response for Mark Announcement Read