Transfer folders
POST {{baseUrl}}/collection-folders-transfers
Copies or moves folders into a collection or folder. Include the following in the request body:
ids— A list of string values that contain the folder UIDs to transfer.target— An object that contains the transfer destination information:model— A string value that contains the the type of item where the items will be transferred to. Accepts thecollectionorfoldervalues.id— The string value that contains the UID of the destination collection or folder.
location— An object that contains the transfered item's source information:position— A string value that contains the item's position within the destination object. Accepts thestart,end,before, andaftervalues.model— For thebeforeorafterpositions, a string value that contains the type of item (model) that the transferred item will be positioned by.id— For thebeforeorafterpositions, a string value that contains the model's UID.
mode— A string value that contains the transfer operation to perform. Accepts themoveorcopyvalue.
Request Body
{"ids"=>["{{folderUid}}"], "target"=>{"model"=>"{{modelType}}", "id"=>"{{modelUid}}"}, "location"=>{"position"=>"{{position}}", "model"=>"{{modelId}}", "id"=>"{{modelUid}}"}, "mode"=>"{{modeType}}"}
RESPONSES
status: OK
{"ids":["12345678-bcb5648b-eecb-4468-ade7-4efb38431bd1"]}