Update

Overview 

Updates the send classification and returns a status. You must provide keys for both the sender and delivery profiles to successfully update a send classification.

Syntax 

Update(1)

Function Properties 

OrdinalTypeDescription
1stringRequiredAttributes from send classification to change

Example 

This sample code updates the name attribute for the send classification with the external key mySendClassification:

1var sc = SendClassification.Init('mySendClassification');
2
3var updatedSC = {
4    Name : "Updated Send Classification",
5    SenderProfileKey : "mySPKey",
6    DeliveryProfileKey : "myDPKey"
7};
8
9var status = sc.Update(updatedSC);