Suppress Message

Suppress a message, preventing its contents from being displayed to users.

Suppress a message

post
Path parameters
idstringRequired

URL-Safe encoded Message ID

Header parameters
sessionTokenstringRequired

Session authentication token.

Responses
chevron-right
200

Success

application/json

The suppression state of a message

messageIdstringOptionalExample: _Gj13MiR-5IrVtrmPNl6fn___qvWCYI_dA
suppressedbooleanOptionalExample: true
suppressionDateinteger · int64Optional

The date when this message was suppressed.

Example: 1461565603191
post
/v1/admin/messagesuppression/{id}/suppress

Suppressed Message Example

The following image shows how the UI represents a suppressed message. The image on the left shows the original message before being suppressed. The image on the right shows how the message will be displayed after being suppressed.

As of Release v1.45, if the user attempts to suppress a message that has already been suppressed at an earlier point in time, the returned suppressionDate will have a value of 0, as shown below:

In addition, be aware that although the message is suppressed, the data from the original message will be in the Content Export (CE). When the CE exports a suppressed message, the following information are returned:

• Suppressed Message Content -> the content of the suppressed message. • Suppressed Message Sent From -> user that sent the suppressed message. • Suppressed Message Timestamp -> date when the message was suppressed.

🚧 Restricted Endpoint

  • Users can suppress their own messages only.

  • Users with the Content Management role can suppress any messages.

  • OBO: Please note that the SUPPRESS_MESSAGES permission is needed for Apps to call this endpoint via OBO.

  • Starting with SBE 20.16, Messages in External rooms can also be suppressed. Please note however that if the counterpart does not yet have SBE 20.16, the message will only be suppressed on your end.

See Bot Permissionsarrow-up-right for a list of roles and associated privileges.

Last updated

Was this helpful?