Add

Overview

Adds a new template to your account and returns the status of the operation

Syntax

Add(1)

Function Properties

<!--complex table-->
Ordinal Type Description
1 object Required JSON object representing properties of the new template

Example

This sample code adds a template to your account:

var myTemp = {
    "CustomerKey":"test_template",
    "TemplateName":"SSJS Test Template",
    "LayoutHTML":"this is some HTML"
};

var status = Template.Add(myTemp);