Set or remove attributes on a contact
Changed onSet or remove attributes on a contact.
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
- AuthOAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopescnt
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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 contact_id, even if the contact_id does not exist.
Changes
- breaking
removed
subschema #3from the////request propertyoneOflist - info
added to the
////request propertyoneOflist
This list may be incomplete.
- breaking
- info
endpoint added
- info