Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket


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


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)