Move file

This api will move the file to a new folder. This folder will be created if it doesn't exist.

PUT /v4/files/{file_uuid}/folders/{folder_uuid}

API Permissions

FILE_MOVE

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/fdocs' path: /v4/files/d04b0c9b-2193-5f94-83ba-aaf034450000/folders/55f9a2a6-3cfb-5430-8814-27be3f1a2962 headers: X-Filerobot-Key: fa5fe3303dd34e1da4810915c7c3fd6f theme: clouds-midnight editor_theme: clouds_midnight method: PUT render: curl_tab: true

Response

{
  "status": "success",
  "action": "files_moved",
  "files_uuids": [
    "d04b0c9b-2193-5f94-83ba-aaf034450000"
  ],
  "files": [
    {
      "uuid": "d04b0c9b-2193-5f94-83ba-aaf034450000",
      "name": "car2.jpg",
      "extension": "jpg",
      "size": {
        "bytes": 689847,
        "pretty": "673.68 KB"
      },
      "flags": [],
      "type": "image/jpeg",
      "info": {
        "img_h": 1210,
        "img_w": 1814,
        "img_type": "JPEG",
        "visibility": "2"
      },
      "meta": {
        "fthfth": null,
        "propro": null,
        "meta_key": null,
        "test key2": null,
        "test key3": null,
        "test_tags": null,
        "dsfgdfgfdg": null
      },
      "visibility": {
        "value": "VISIBILITY_INHERIT",
        "inherited": "VISIBILITY_PUBLIC",
        "set": "VISIBILITY_INHERIT",
        "actual": "VISIBILITY_PUBLIC"
      },
      "url": {
        "public": "https://store.filerobot.com/fdocs/api-demo/new-name/car2.jpg",
        "permalink": "https://api.filerobot.com/fdocs/v4/get/d04b0c9b-2193-5f94-83ba-aaf034450000",
        "cdn": "https://fdocs.filerobot.com/api-demo/new-name/car2.jpg?vh=578ea4",
        "path": "/api-demo/new-name/car2.jpg"
      },
      "hash": {
        "sha1": "578ea48be0de7fa1d458f6254a299520fa83dbe9",
        "blurhash": null
      },
      "created_at": "2021-05-04T09:01:47Z",
      "modified_at": "2021-05-04T13:26:08Z",
      "folder": {
        "uuid": "55f9a2a6-3cfb-5430-8814-27be3f1a2962",
        "name": "/api-demo/new-name"
      },
      "product": {
        "ref": null,
        "position": null
      }
    }
  ],
  "target_folder_uuid": "55f9a2a6-3cfb-5430-8814-27be3f1a2962"
}