Move files

This api will move all the files given to a new folder. This folder will be create if it doesn't exist.

Move files to another folder

POST /v4/files/move

API Permissions

FILE_MOVE

Body

{
    "files_uuids": [
        "5b12134e-70c6-5bd8-b49c-6264a08de5d7", 
        ... 
    ],
    "new_folder_uuid": "08c40f0c-750e-5a56-85c1-63bd3061fa22"
}

or

{
    "files_uuids": [
        "5b12134e-70c6-5bd8-b49c-6264a08de5d7", 
        ... 
    ],
    "new_folder_name": "/hello/world"
}

In the request body, either new_folder_uuid or new_folder_name can be set. If using new_folder_name, the folder will be created if it doesn't exist.

Try it out

Request

Copy-paste the cURL request in your Terminal or click on the API Explorer tab to see the API in action.

host: 'https://api.filerobot.com/fusqadtm' path: /v4/files/move headers: X-Filerobot-Key: 19692813e7364ef8ad6a6504d50a12ca theme: clouds-midnight editor_theme: clouds_midnight method: POST body: | { "files_uuids": [ "2fcde7ea-86ac-5c1d-bd58-c05333050000" ], "new_folder_name": "/properties" } render: curl_tab: true

Response

{
    "status": "success",
    "action": "files_moved",
    "files_uuids": [
        "2fcde7ea-86ac-5c1d-bd58-c05333050000"
    ],
    "new_folder_uuid": "bf69ec9e-ea56-5f4b-8c5f-7296c0698b94"
}