# Update banned email or domain

You can update a list of existing banned user.

PUT /banned-users/:id/

Attributes Type Required Description
id integer yes A unique identifier for a banned user.
banned_name string yes A banned user name.
is_domain boolean no A flag that determines if banned name is email or domain.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
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
  }