cURL
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>" } }
Update a custom flag reason.
Id of the reason which needs to be updated.
Updated display name for the content type.
"Updated name for unfiltered content."
Reason updated successfully.
Show child attributes
Was this page helpful?
Contact support