You are here: Communications Cloud API v1 > Resources > Subscribers > Update a Subscriber
Update a Subscriber

PUT to /api/account/ACCOUNT_CODE/subscribers/ENCODED_SUBSCRIBER_ID.xml

Example Input

For an email subscriber OR a wireless subscriber changing to an email subscriber

<subscriber>
    <email>EMAIL@ADDRESS.COM</email>
    <send-notifications type='boolean'>false</send-notifications>
    <digest-for>#</digest-for>
  </subscriber>

For a wireless subscriber OR an email subscriber changing to a wireless subscriber

 <subscriber>
    <phone>###-###-####</email>
    <country-code>#</country-code>
    <send-notifications type='boolean'>false</send-notifications>
  </subscriber>
Elements
Changing Subscriber Type

If you want to change the subscriber type (email subscriber vs. wireless subscriber), use their current ID for the ENCODED_SUBSCRIBER_ID in the call and provide the new information (phone + country code vs. email address) in the request body, excluding the existing ID information in the request body. See examples below.

Example Output
<?xml version='1.0' encoding='UTF-8'?>
<subscriber>
  <to-param>SUBSCRIBER_ID</to-param>
  <link rel="self" href="/api/account/ACCOUNT_CODE/subscribers/SUBSCRIBER_ID" />
</subscriber>
Troubleshooting

Reference subscriber error codes

 

Was this page helpful? Can't find what you need? Let us know