Skip to main content
PATCH
/
moderation
/
flagged-messages
/
{id}
curl --request PATCH \ --url https://{appid}.api-{region}.cometchat.io/v3/moderation/flagged-messages/{id} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "status": "disapproved" } '
{
  "success": true,
  "message": "Message with id 2 has been unflagged 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 which needs to be reviewed.

Body

application/json
status
enum<string>

Specifies the moderation action to apply to the flagged message (approve or disapprove).

Available options:
approved,
disapproved

Response

200 - application/json

Review and Flag Message(s)

The response is of type object.