cURL
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 }
Update a wordlist
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the wordlist to update
Wordlist updated successfully
The response is of type object.
object
Was this page helpful?