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

Update banned email or domain

You can update a list of existing banned user.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for a banned user.
banned_namestringrequired
A banned user name.
is_domainboolean
A 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 "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"banned_name": "blocked-again@example.com"
}'

Response examples​

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

Response fields​

Fields returned in the 200 OK response body.

idinteger
A unique identifier for the campaign which is given by User
banned_namestring
A banned user name.
is_domainboolean
A flag that determines if banned name is email or domain.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.