Add
Overview
Adds a new template to your account and returns the status of the operationSyntax
Add(1)
| 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);