{
"data": {
"id": "profanity-list",
"name": "Profane Words",
"category": "word",
"isCSV": false,
"searchTerms": [
"fuck",
"nigger",
"fuck",
"nigger",
"wanker",
"cunt",
"damn",
"shit",
"fag",
"shithead",
"jizz",
"hellbitch",
"retard",
"cocksucker",
"cock",
"kill",
"cunt",
"kike",
"twat",
"bastard",
"death",
"asshole",
"wop",
"scumbag",
"penis",
"murder",
"dick",
"gook",
"vagina",
"rape",
"bastard",
"spic",
"spunk",
"beat"
],
"createdAt": 1718354412,
"updatedAt": 1718354412,
"revisionId": "253157108b5294c4_profanity-list_1",
"active": true,
"default": true
}
}Keywords
Update keyword
Update a CometChat moderation keyword by keywordId with REST API to change keyword or regex pattern settings.
PUT
/
moderation
/
keywords
/
{keywordId}
{
"data": {
"id": "profanity-list",
"name": "Profane Words",
"category": "word",
"isCSV": false,
"searchTerms": [
"fuck",
"nigger",
"fuck",
"nigger",
"wanker",
"cunt",
"damn",
"shit",
"fag",
"shithead",
"jizz",
"hellbitch",
"retard",
"cocksucker",
"cock",
"kill",
"cunt",
"kike",
"twat",
"bastard",
"death",
"asshole",
"wop",
"scumbag",
"penis",
"murder",
"dick",
"gook",
"vagina",
"rape",
"bastard",
"spic",
"spunk",
"beat"
],
"createdAt": 1718354412,
"updatedAt": 1718354412,
"revisionId": "253157108b5294c4_profanity-list_1",
"active": true,
"default": true
}
}Body
multipart/form-data
The body is of type any.
Response
200 - application/json
Update Keyword
Show child attributes
Show child attributes
Was this page helpful?
⌘I