Skip to main content
PUT/banned-users/:id/

Update banned email or domain

You can update a list of existing banned user.

AttributesTypeRequiredDescription
idintegeryesA unique identifier for a banned user.
banned_namestringyesA banned user name.
is_domainbooleannoA flag that determines if banned name is email or domain.

Request​

curl -X PUT
"https://<your_app_subdomain>.user.com/api/public/banned-users/:id/"
-H 'Authorization: Token <your_64_char_api_key>' \
-H 'Content-Type: application/json' \
-d '{
"banned_name": "test@mail.com"
}'

Response​

{
"id": 36,
"banned_name": "test@mail.com",
"is_domain": false
}