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

assignFolder

Assigns a mailing or a target group to a folder in Optimizely Campaign. Assigning a folder is the same as moving a mailing or target group into a folder.

Type: void

Parameters

NameTypeValues
sessionIdStringID of the current session
mailingOrFilterIdlongID of the mailing or target group to be assigned to the folder referenced by the parameter folderId.
folderIdlongID of the folder to which the mailing or target group is to be assigned.
folderTypeStringThe folderType parameter is used to indicate whether a folder contains mailings or target groups. So, the  value of this parameter can be mailing or filter. The type must correspond to the item being assigned.

Return values

  • Code structure

    void assignFolder(String sessionId, long mailingOrFilterId, long folderId, String folderType)