Skip to main content
PUT
/
moderation
/
reasons
/
{id}
Update Reason details
curl --request PUT \
  --url https://{appid}.api-{region}.cometchat.io/v3/moderation/reasons/{id} \
  --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).

Path Parameters

id
string
required

Id of the reason which needs to be updated.

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.