curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/profanity-filter/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '
{
"settings": {
"dropMessage": false,
"badwords": [
"xyz"
]
}
}
'{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"success": true
}
}
}
}Profanity-filter : Adds settings an app.
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/profanity-filter/v1/settings \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '
{
"settings": {
"dropMessage": false,
"badwords": [
"xyz"
]
}
}
'{
"data": {
"statusCode": 200,
"success": true,
"responseTime": 3.061743974685669,
"body": {
"data": {
"success": true
}
}
}
}AppID in which the extension has to be enabled/disabled
Store Profanity-filter Settings
Was this page helpful?