# 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-by-id/mass_update_standard_attributes/
Attributes | Type | Required | Description |
---|---|---|---|
ids | list(strings) | yes | List of users' custom ids (unique identifiers for the user which are provided by the client). |
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 "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"
}