Skip to main content
POST/users/:id/remove_attribute/

Remove attribute

Keep in mind that you have to use full original name as an attribute name. Other names will result in 404 Not Found response and no changes in the user profile.

Attributes

Optional unless marked required

idstring
A unique identifier for the user which is given by User automatically.
attributestringrequired
A name of your attribute.

Request​

curl -X POST "https://<your_app_subdomain>.user.com/api/public/users/:id/remove_attribute/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"attribute": "20261110_1519_seats"
}'

Response examples​

No response body.

A 400 with "errors": "Missing attribute name" comes back when the body has no attribute. A 404 comes back for a contact that doesn't exist (with "detail") and for an attribute that doesn't exist (with no body). An attribute the contact has no value for answers 204.

note

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