Move multiple folders

POST {{api-server}}/:token/{{api-version}}/folders/move

This API is used to move multiple folders to another location.

Body attributes

AttributeDescriptionTypeRequired
newfoldernameDirectory of the destination folder.StringYes
folders_uuidList with the UUIDs of the folders that need to be moved. The UUIDs should be separated by commaarrayYes

Request Body

{"folders_uuids"=>["5ca01e62-51e5-5b43-a9d6-c88d85881f26", "29e9c3b4-6034-51d4-8040-0f9e0e7cb7fd"], "new_folder_name"=>"/api-demo"}

HEADERS

KeyDatatypeRequiredDescription
X-Filerobot-KeystringFilerobot API key
Content-Typestring

RESPONSES

status: OK

{"status":"success","action":"folders_moved","folders_uuids":["5ca01e62-51e5-5b43-a9d6-c88d85881f26","29e9c3b4-6034-51d4-8040-0f9e0e7cb7fd"],"folders":[{"uuid":"5ca01e62-51e5-5b43-a9d6-c88d85881f26","path":"/api-demo/letsgo folder","name":"letsgo folder","meta":{},"visibility":{"in_dam":{"set":"inherited","actual":"all_organisation"},"in_cdn":{"set":"inherited","actual":"not_public"}},"updated_at":"2023-07-26T06:28:57Z","created_at":"2023-07-26T05:18:47Z","count":{"files_recursive":0,"files_direct":0},"size":{"total_recursive_bytes":0,"total_recursive_pretty":"0 B"},"public_icon":"https://scaleflex.cloudimg.io/crop/300x300/x/http://www.airstore.io/assets/dir.png"},{"uuid":"29e9c3b4-6034-51d4-8040-0f9e0e7cb7fd","path":"/api-demo/testingyoyo","name":"testingyoyo","meta":{},"visibility":{"in_dam":{"set":"inherited","actual":"all_organisation"},"in_cdn":{"set":"inherited","actual":"not_public"}},"updated_at":"2023-07-26T06:28:57Z","created_at":"2023-07-26T05:18:35Z","count":{"files_recursive":0,"files_direct":0},"size":{"total_recursive_bytes":0,"total_recursive_pretty":"0 B"},"public_icon":"https://scaleflex.cloudimg.io/crop/300x300/x/http://www.airstore.io/assets/dir.png"}],"new_folder_uuid":"7610923e-80d0-50e8-a2e4-c509be390158","api_version":{"hash":"ed8718a742085aed68a46b4a95c50ac0a1d0d1ae","datetime":"2023-07-18T11:26:26+07:00"}}