Skip to main content
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."
  }
}

Documentation Index

Fetch the complete documentation index at: https://cometchat-013b37f0.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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
status
string
required

Moderation status of the message.

Example:

"approved"

Response

200 - application/json

Approve Blocked Messages

data
object