Update

Overview 

Updates the subscriber and returns a status

Syntax 

Update(1)

Function Properties 

OrdinalTypeDescription
1stringRequired

Example 

This sample code updates a currently existing subscriber.

1var subscriber = {
2    "EmailTypePreference": "HTML",
3    "Attributes":{"First Name": "Test", "Last Name": "User"}
4};
5
6var subObj = Subscriber.Init("SubKey");
7var status = subObj.Update(subscriber);