# Mass update custom attributes

You can update a value for your custom attributes for many users at the same time.

PUT /users-by-id/mass_update_custom_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 The name of your attribute. Has to be at least 1 character, and cannot be longer than 255 characters.
value various types yes A possible attribute types: boolean, fixed, string, date, datetime, integer, float and json.

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
 curl -X POST -H "Authorization: Token <your_64_char_api_key>"
     -H "Accept: */*; version=2" -H "Content-Type: application/json" -d '{
      "ids": ['10', '15', '22', '23'],
      "attribute": "Name of the attribute",
      "value": "Value for the attribute"
    }' "https://<your_app_subdomain>.user.com/api/public/users-by-id/mass_update_custom_attributes/"