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' \
  --data '
{
  "name": "Updated name for unfiltered content."
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Path Parameters

id
string
required

Id of the reason which needs to be updated.

Body

application/json
name
string

Updated display name for the content type.

Example:

"Updated name for unfiltered content."

Response

200 - application/json

Reason updated successfully.

data
object