Contacts

Set or remove attributes on a contact

Changed on

Set 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.

post/api/contacts/attributes

Request

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.

okboolean

Set to true when status code is 200.

warningsstring

Warnings encountered when updating contact attributes.

Changes

    • breaking

      removed subschema #3 from the //// request property oneOf list

    • info

      added to the //// request property oneOf list

    This list may be incomplete.

    • info

      endpoint added