Folder

Gets the full details (e.g. permission, storage layer, etc.) for a folder. Returns an empty object if no settings have been configured for this folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.

Changed on

Gets the full details (e.g. permission, storage layer, etc.) for a folder.

Returns an empty object if no settings have been configured for this folder.

Requires a secret_* API key. Alternatively, you can use a public_* API key and JWT-based auth.

get/v2/accounts/{accountId}/folders

Request

Path parameters

accountIdstring required

Your account ID.

This is visible on the settings page:

https://www.bytescale.com/dashboard/settings

Example:A623uY2

Query parameters

folderPathstring required

Absolute path to a folder. Begins with a /. Should not end with a /.

Example:/uploads

Response

Success.

folderPathstring required

Absolute path to a folder. Begins with a /. Should not end with a /.

type'Folder' required

Indicates this item is a folder (as opposed to a file).

virtualboolean required

If true then the folder was created using the PutFolder operation.

If false then the folder was created automatically as the result of a file upload operation, and will disappear if/when the folder later becomes empty.

Example response

{
  "folderPath": "/uploads",
  "settings": {},
  "settingsInherited": {
    "publicPermissions": {
      "folderPath": "/",
      "value": [
        {
          "scope": "Children",
          "permissions": {
            "file": {
              "downloadFile": [
                "*"
              ]
            }
          }
        }
      ]
    },
    "storageLayer": {
      "folderPath": "/",
      "value": {
        "type": "InternalStorageV2"
      }
    }
  },
  "type": "Folder",
  "virtual": true
}

Changes

    • breaking

      the response property / became optional for the status

    • breaking

      the response property / became optional for the status

    • info

      removed from the / response property allOf list for the response status

    • info

      removed from the / response property allOf list for the response status