PUT
/
wordlist
/
{id}
curl --request PUT \
  --url https://moderationapi.com/api/v1/wordlist/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "words": [
    "<string>"
  ],
  "strict": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "words": [
    "<string>"
  ],
  "createdAt": "<string>",
  "organizationId": "<string>",
  "userId": "<string>",
  "strict": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the wordlist to update

Body

application/json

Response

200
application/json
Wordlist updated successfully

The response is of type object.