# Mass update standard attributes

HTTP PUT request enabling you to update chosen standard attribute for users in bulk.

Allowed attributes: assigned_to, city, company_id, country, email, facebook_url, first_name, gender, google_url, gravatar_url, last_name, linkedin_url, notifications, phone_number, region, score, status, timezone, twitter_url, unsubscribed, custom_id.

PUT /users/mass_update_standard_attributes/

Attributes Type Required Description
ids list(integers) yes List of users' ids (unique identifiers for the user which are given by User.com automatically).
attribute string yes A name of your attribute. It must a be a standard and allowed for update attribute.
value depending on the attribute type yes A value for the attribute

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X PUT -H "Authorization: Token \<your_64_char_api_key>" -H "Content-Type: application/json" -d '{
        "ids": [10, 15, 22, 23],
        "attribute": "country",
        "value": "USA"
    }' "https://<your_app_subdomain>.user.com/api/public/users/mass_update_standard_attributes/"

# Response

{
    "status": "ok"
}