Add

Overview 

Adds a new folder to your account as a child to a previously existing folder and returns the status

Syntax 

Add(1)

Function Properties 

OrdinalTypeDescription
1objectRequiredJSON object representing new folder properties

Example 

This sample code adds a folder to your account:

1var newFolder = {
2    "Name" : "Test Add Folder",
3    "CustomerKey" : "test_folder_key",
4    "Description" : "Test added",
5    "ContentType" : "email",
6    "IsActive" : "true",
7    "IsEditable" : "true",
8    "AllowChildren" : "false",
9    "ParentFolderID" : 123456
10};
11var status = Folder.Add(newFolder);