Skip to main content
PATCH
/
moderation
/
blocked-messages
/
{id}
Review Blocked Message
curl --request PATCH \
  --url https://{appid}.api-{region}.cometchat.io/v3/moderation/blocked-messages/{id} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "status": "approved",
  "reviewed": true
}'
{
  "data": {
    "success": true,
    "message": "Message with ID 540185 has been reviewed successfully."
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Path Parameters

id
string
required

Id of the message of the message to be flagged.

Body

application/json
status
string
required

Indicates the review decision for the moderated message. Possible values: approved, rejected.

Example:

"approved"

reviewed
boolean
required

Specifies whether the moderation request has been reviewed.

Example:

true

Response

200 - application/json

Review Blocked Reasons

The response is of type object.