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

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");
Last Updated: Jun 8, 2021