PUT
/
api
/
v2
/
moderation-settings
update a moderation setting
curl --request PUT \
  --url https://apix.us.amity.co/api/v2/moderation-settings \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "maxRepetition": 1,
  "maxRepetitionTimeout": 1,
  "blacklistMuteTimeout": 1,
  "whitelistMuteTimeout": 1,
  "maxRepetitionMuteTimeout": 1,
  "enableImageModeration": true,
  "imageModeration": {
    "nudity": 1,
    "suggestive": 1,
    "violence": 1,
    "disturbing": 1
  }
}'
{
  "status": "success",
  "code": 200
}

Authorizations

X-API-Key
string
header
required

Headers

Authorization
string
required
Content-Type
string
required

Body

application/json

moderation setting information

The body is of type object.

Response

200
application/json

OK

The response is of type object.