Properties
NAME | TYPE | DESCRIPTION |
$id | string | Bucket ID. |
$createdAt | integer | Bucket creation date in Unix timestamp. |
$updatedAt | integer | Bucket update date in Unix timestamp. |
$read | array | File read permissions. |
$write | array | File write permissions. |
permission | string | Bucket permission model. Possible values: `bucket` or `file` |
name | string | Bucket name. |
enabled | boolean | Bucket enabled. |
maximumFileSize | integer | Maximum file size supported. |
allowedFileExtensions | array | Allowed file extensions. |
encryption | boolean | Bucket is encrypted. |
antivirus | boolean | Virus scanning is enabled. |
Example
JSON
{
"$id": "5e5ea5c16897e",
"$createdAt": 1592981250,
"$updatedAt": 1592981250,
"$read": [
"role:all"
],
"$write": [
"user:608f9da25e7e1"
],
"permission": "file",
"name": "Documents",
"enabled": false,
"maximumFileSize": 100,
"allowedFileExtensions": [
"jpg",
"png"
],
"encryption": false,
"antivirus": false
}
JSON
{
"_id": "5e5ea5c16897e",
"_createdAt": 1592981250,
"_updatedAt": 1592981250,
"_read": [
"role:all"
],
"_write": [
"user:608f9da25e7e1"
],
"permission": "file",
"name": "Documents",
"enabled": false,
"maximumFileSize": 100,
"allowedFileExtensions": [
"jpg",
"png"
],
"encryption": false,
"antivirus": false
}