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 onGets 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
- Base URLhttps://api.bytescale.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdstring required
Example:A623uY2
Query parameters
folderPathstring required
Absolute path to a folder. Begins with a /. Should not end with a /.
Example:/uploads
Response
Success.
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 propertyallOflist for the response status - info
removed from the
/response propertyallOflist for the response status
- breaking