---
schema_version: "1"
id: 3ae9a83b42f1fa897ba62b4cbac104d60683c08a41dc7a4bb8d4a50b6c0d7d1f
title: Add
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_templateAdd.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_templateAdd.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2cbaf359b515dc4a3d4865964a0d3dcc721d2f07041d4c12a7f209488b0f7847
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# 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);
```
