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

Ordinal Type Description
1 object Required JSON object representing new folder properties

Example

This sample code adds a folder to your account:

var newFolder = {
    "Name" : "Test Add Folder",
    "CustomerKey" : "test_folder_key",
    "Description" : "Test added",
    "ContentType" : "email",
    "IsActive" : "true",
    "IsEditable" : "true",
    "AllowChildren" : "false",
    "ParentFolderID" : 123456
};
var status = Folder.Add(newFolder);
Last Updated: Jun 8, 2021