Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

createFolder

Creates a new folder in Optimizely Campaign.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the current session
folderNameStringName of the new folder
parentFolderIdlongID of the parent folder, or 0 if you want to create a new root directory
folderTypeStringType of the new folder

Return values

ID of the new folder

Code structure

long createFolder(String sessionId, String folderName, long parentFolderId, String folderType)