Update

Overview

Updates the subscriber and returns a status

Syntax

Update(1)

Function Properties

<!--complex table-->
Ordinal Type Description
1 string Required

Example

This sample code updates a currently existing subscriber.

var subscriber = {
    "EmailTypePreference": "HTML",
    "Attributes":{"First Name": "Test", "Last Name": "User"}
};

var subObj = Subscriber.Init("SubKey");
var status = subObj.Update(subscriber);