Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

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 the collection or folder values.
    • 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 the start, end, before, and after values.
    • model — For the before or after positions, a string value that contains the type of item (model) that the transferred item will be positioned by.
    • id — For the before or after positions, a string value that contains the model's UID.
  • mode — A string value that contains the transfer operation to perform. Accepts the move or copy value.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "ids": [ "12345678-bcb5648b-eecb-4468-ade7-4efb38431bd1" ] }



Curl
curl -X POST 'https://api.getpostman.com/collection-folders-transfers' -d '{"ids":["folderUid"],"target":{"model":"modelType","id":"modelUid"},"location":{"position":"position","model":"modelId","id":"modelUid"},"mode":"modeType"}'

ENDPOINTS