Add

Overview 

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

Syntax 

Add(1)

Function Properties 

OrdinalTypeDescription
1objectRequiredJSON object representing properties of the new template

Example 

This sample code adds a template to your account:

1var myTemp = {
2    "CustomerKey":"test_template",
3    "TemplateName":"SSJS Test Template",
4    "LayoutHTML":"this is some HTML"
5};
6
7var status = Template.Add(myTemp);