Set or remove attributes on named users
Changed onSet or remove attributes on a named user.
A single request body may contain a set or remove field, or both, or a single set field. If both set and remove fields are present and the intersection of the attributes in these fields is not empty, then a 400 will be returned.
If an attribute request is partially valid, i.e., at least one attribute exists, Airship returns a 200 with a warning about the attributes that failed to update. The attributes listed in the warnings string will be in CSV format.
Request
- Base URLhttps://go.urbanairship.com
- Auth
- HTTP basic
- or HTTP basic
- or HTTP bearer
- or OAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopesnu
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The named user you are setting the attributes for.
Request body
Response
Success. If an attribute request is partially valid, i.e., at least one attribute exists, Airship returns a 200 with a warning string containing a CSV list of attributes that failed to update. Airship also returns a 200 with a warning if you attempt to set attributes on a named_user, even if the named_user does not exist.
Changes
- breaking
removed
subschema #3from the////request propertyoneOflist - info
added to the
////request propertyoneOflist
This list may be incomplete.
- breaking
- breaking
removed
subschema #1: Set Attributesubschema #2: Remove Attributefrom the//request propertyoneOflist - breaking
the response property
became optional for the status
This list may be incomplete.
- breaking