Subscribers.Update
Overview
Updates the status of the specified subscriber on the initialized list. Initialize the list using the list's external key valueSyntax
Subscribers.Update(1, 2)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Attribute containing Email address of subscriber or a JSON object containing the EmailAddress and SubscriberKey values for the subscriber |
| 2 | string | Required | New status of subscriber on initialized list |
Example
This sample code sets the status of the subscriber to active.
var myList = List.Init("myList");
var status = myList.Subscribers.Update("aruiz@example.com","Active");