Skip to main content
PUT/users-by-id/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(strings)yesList of users' custom ids (unique identifiers for the user which are provided by the client).
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 "Accept: */*; version=2" -H "Content-Type: application/json" -d '{
"ids": ['1', '5', '10', '23', '24'],
"attribute": "country",
"value": "USA"
}' "https://<your_app_subdomain>.user.com/api/public/users-by-id/mass_update_standard_attributes/"

Response​

{
"status": "ok"
}