HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

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)
    

What’s Next
Did this page help you?