curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/moderation/keywords \
--header 'Content-Type: multipart/form-data' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--form id=ID-of-the-word-list \
--form 'name=Name of the word list' \
--form 'description=Description of the word list' \
--form category=word \
--form 'searchTerms=AI-powered video moderation to detect unsafe content.'
{
"data": {
"id": "profane-word-list-1",
"name": "profane word list",
"description": "Profane word list",
"category": "word",
"isCSV": true,
"searchTerms": [
"\"a\"",
"\"b\"",
"\"c\""
],
"createdAt": 1720023805,
"updatedAt": 1720023805,
"revisionId": "253179cf5f665257_profane-word-list-1_1",
"active": true
}
}
Create a new keyword list for moderation.
curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/moderation/keywords \
--header 'Content-Type: multipart/form-data' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--form id=ID-of-the-word-list \
--form 'name=Name of the word list' \
--form 'description=Description of the word list' \
--form category=word \
--form 'searchTerms=AI-powered video moderation to detect unsafe content.'
{
"data": {
"id": "profane-word-list-1",
"name": "profane word list",
"description": "Profane word list",
"category": "word",
"isCSV": true,
"searchTerms": [
"\"a\"",
"\"b\"",
"\"c\""
],
"createdAt": 1720023805,
"updatedAt": 1720023805,
"revisionId": "253179cf5f665257_profane-word-list-1_1",
"active": true
}
}
AppID in which the extension has to be enabled/disabled
Created Keyword
The response is of type object
.
Was this page helpful?