Update Subscriber Attributes using the Update Method

This page contains information about updating subscriber attributes via the SOAP API using the Update method.

Why Update Subscriber Attributes Using the Update Method

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

How to Update Subscriber Attributes Using the Update Method

Use the sample code below as an example to construct your own API update call. 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.

Sample .NET Code

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

Sample Java Code (Axis 1.4)

The sample code below updates subscriber information and creates a new subscriber if the application cannot find the appropriate record:

The sample code below updates a subscriber status to Unsubscribed.

Sample Java Code (CXF)

Sample PHP Code

The sample below uses a subscriber key.

Sample SOAP Call