Skip to main content
PUT
/
moderation
/
reasons
/
unfiltered-content
Update Reason details
curl --request PUT \
  --url https://{appid}.api-{region}.cometchat.io/v3/moderation/reasons/unfiltered-content \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "name": "Updated name for unfiltered content."
}'
{
  "data": {
    "id": "spam",
    "name": "Spam / Unwanted Content",
    "description": "Repeated, promotional, or irrelevant content",
    "createdAt": 1760443648,
    "updatedAt": 1760443648,
    "default": true
  }
}

Authorizations

apikey
string
header
required

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

Body

application/json
name
string
required

Updated display name for the content type.

Example:

"Updated name for unfiltered content."

Response

200 - application/json

Update Reasons Details

The response is of type object.