Skip to main content
PUT/users/mass_update_standard_attributes/

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.

AttributesTypeRequiredDescription
idslist(integers)yesList of users' ids (unique identifiers for the user which are given by User.com automatically).
attributestringyesA name of your attribute. It must a be a standard and allowed for update attribute.
valuedepending on the attribute typeyesA value for the attribute

Request​

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"
}