Subscribers.Update

Overview 

Updates the status of the specified subscriber on the initialized list. Initialize the list using the list’s external key value

Syntax 

Subscribers.Update(1, 2)

Function Properties 

OrdinalTypeDescription
1stringRequiredAttribute containing Email address of subscriber or a JSON object containing the EmailAddress and SubscriberKey values for the subscriber
2stringRequiredNew status of subscriber on initialized list

Example 

This sample code sets the status of the subscriber to active.

1var myList = List.Init("myList");
2var status = myList.Subscribers.Update("aruiz@example.com","Active");