Set a user's attribute values
Sets the customer’s values for the given attributes and returns them as UserAttributeValue objects, in request order. All items are applied or none: a 400 lists each refused item’s errors under errors.attributes, keyed by its position. Shoppers can set visible, active custom attributes that aren’t is_readonly. In a business account every user of the customer sets the same values. With an anonymous token the values are the visitor’s: they move to the customer when the visitor signs in or signs up, where the more recent of the visitor’s and the customer’s values is kept. The id must be the token’s own user (signed in), or its visitor’s id (anonymous token); any other id gets 404, as an unknown one does.
Body
1 - 50 elements- By id
- By slug
A value to set for one attribute, named by its attribute_id or its slug (one of the two). Shoppers can set visible, active custom attributes that aren't is_readonly.