PATCH
/
apps
/
{appId}
/
moderation
/
blocked-messages
/
{messageId}
Approve Blocked Messages
curl --request PATCH \
  --url https://apimgmt.cometchat.io/apps/{appId}/moderation/blocked-messages/{messageId} \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "status": "approved"
}'
{
  "data": {
    "success": true,
    "message": "Message with ID 268 has been approved."
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

messageId
string
required

messageId for the moderation service

Body

application/json

Response

200 - application/json

Approve Blocked Messages

The response is of type object.