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
}
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
}
moderation setting information
The body is of type object
.
OK
The response is of type object
.