Data Types

UploadJwtAccess

Permissions to grant to the user.

If the JWT is provided together with a public API key, then the permissions from the API key are merged with the JWT's permissions, taking the JWT's permissions where overlaps occur.

All fields are optional.

Structure

Example

{
"pathPermissions": [
{
"match": {
"path": "/uploads/file.jpg",
"scope": "Children"
},
"permissions": {
"read": {
"file": {
"downloadFile": [
"thumbnail"
],
"getFileDetails": true
},
"folder": {
"getFolderDescription": true,
"getFolderPublicPermissions": true,
"getFolderStorageLayer": true,
"listFolderChildren": true
}
},
"write": {
"file": {
"createFile": true,
"deleteFile": true,
"overwriteFile": true
},
"folder": {
"createVirtualFolder": true,
"deleteVirtualFolder": true,
"setFolderDescription": true,
"setFolderPublicPermissions": true,
"setFolderStorageLayer": true
}
}
}
}
],
"tagPermissions": {
"write": [
"*"
]
}
}

Properties

pathPermissions

Specifies which paths the user has access to, and the level of access the user has to those paths.

Type: UploadJwtPathPermissions[]

Required: No

tagPermissions

Specifies which tags the user can associate with their file uploads.

Type: UploadJwtTagPermissions

Required: No

Used by

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: