Update Subscriber Attributes using the Update Method

Updating subscriber attributes via the SOAP API allows you to better maintain your subscriber information while maintaining a tight integration with your system or development environment.

Use these code examples to construct your own API update calls. You must include the unique identifier (either an email address or subscriber key) and the name-value pairs for the attributes to be updated. You must create a new record if you want to create a new value for the subscriber's primary key.

The code sample below demonstrates how to unsubscribe a subscriber. Note that StatusSpecified must be set to true in order to change the status.

This code example updates subscriber information and creates a new subscriber if the application can’t find the appropriate record:

This code example updates a subscriber status to Unsubscribed.

The sample below uses a subscriber key.