Add

Overview 

Adds a new content area to your account and returns an initialized object

Syntax 

Add(1)

Function Properties 

OrdinalTypeDescription
1objectRequiredJSON object representing the properties of the new content area

Example 

This sample code adds a content area to your account:

1var exampleArea = {
2    "CustomerKey" : "exampleArea",
3    "Name" : "SSJS Content Area Example",
4    "CategoryID" : 123456                            //Use only if you wish to assign the content area to a specific folder
5    "Layout" : "RawText",                            //Use only if you wish to create a specific layout format for a content area
6    "LayoutSpecified" : true,                        //Use only if you specify a layout type
7    "Content" : "<b>This is example content</b>"
8};
9
10var addedCA = ContentAreaObj.Add(exampleArea);