Create folder

This API will create a folder from the value given in the body.

POST /v4/folders

API permissions

FOLDER_CREATE

Body

{
    "name": "/folder/subfolder"
}

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/folders headers: X-Filerobot-Key: fa5fe3303dd34e1da4810915c7c3fd6f theme: clouds-midnight editor_theme: clouds_midnight method: POST body: | { "name": "/api-demo/new-folder" } render: curl_tab: true

Response

{
  "status": "success",
  "action": "folder_created",
  "folder_uuid": "e9e224b3-b641-5a2b-abc0-169774c1a516",
  "folder": {
    "uuid": "e9e224b3-b641-5a2b-abc0-169774c1a516",
    "path": "/api-demo/d2folder",
    "name": "d2folder",
    "meta": {},
    "visibility": "VISIBILITY_INHERIT",
    "updated_at": "2021-05-04T14:09:21Z",
    "created_at": "2021-05-04T14:09:21Z",
    "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"
  }
}