Media
API for communication with ZBOS by Zora Robotics.
Channels
zbos/media/library/list
PUB List all media libraries
\[DEPRECATED] Please use zbos/media/library/list/get
zbos/media/library/list/get
PUB Get a list of media items
see zbos/media/library/list/response/\{key} for response
FilteringRequest
Payload
Name |
Type |
Description |
Accepted values |
|
string |
Any |
|
|
integer |
Any |
|
|
integer |
Any |
|
|
array (object) |
Any |
|
|
string |
Field to check on. Note that the field should be camelCase, not snake_case |
Any |
|
string |
Value to check on. For numbers you should use 'min' and 'max'. |
Any |
|
number |
Minimum value, only usable for number fields |
Any |
|
number |
Maximum value, only usable for number fields |
Any |
|
string |
Direction to sort on. Can be 'asc' or 'desc'. The default direction is 'asc' |
* |
|
string |
Operator for either the child filters, or this filter object itself. Can be 'and', 'or' or 'not'. Default is 'and'. The root operator is always 'and' |
* |
|
string |
Match type for string values. Can be 'exact', 'contains', 'starts_with', 'ends_with'. The default match_type is 'contains' |
* |
|
array (object) |
Filters on which the operator will be applied. If there are no child filters, the operator will be applied to the filter object itself. |
Any |
|
array (object) |
Filters to apply on the child fields of the field. Will only work if the field is an object, array/list or map. |
Any |
|
array (object) |
Any |
|
|
string |
Field to check on. Note that the field should be camelCase, not snake_case |
Any |
|
string |
Value to check on. For numbers you should use 'min' and 'max'. |
Any |
|
number |
Minimum value, only usable for number fields |
Any |
|
number |
Maximum value, only usable for number fields |
Any |
|
string |
Direction to sort on. Can be 'asc' or 'desc'. The default direction is 'asc' |
* |
|
string |
Operator for either the child filters, or this filter object itself. Can be 'and', 'or' or 'not'. Default is 'and'. The root operator is always 'and' |
* |
|
string |
Match type for string values. Can be 'exact', 'contains', 'starts_with', 'ends_with'. The default match_type is 'contains' |
* |
|
array (object) |
Filters on which the operator will be applied. If there are no child filters, the operator will be applied to the filter object itself. |
Any |
|
array (object) |
Filters to apply on the child fields of the field. Will only work if the field is an object, array/list or map. |
Any |
|
string |
Optional. Set the language to have all translations filled in. The language format is ISO 639-1 language code, Eg: 'en' or 'en-US' |
Any |
Examples of payload
{
"key": "Test123",
"limit": 50,
"offset": 10,
"filters": [
{
"operator": "or",
"match_type": "contains"
},
{
"field": "type",
"value": "image",
"operator": "and",
"match_type": "contains"
},
{
"field": "date",
"operator": "and",
"match_type": "contains"
}
],
"sort": [
{
"field": "extension",
"operator": "and",
"match_type": "contains"
},
{
"field": "name",
"operator": "and",
"match_type": "contains"
}
]
}
zbos/media/library/list/response/\{key}
SUB response: Get a list of media items
Array<MediaFile>
Payload
Name |
Type |
Description |
Accepted values |
|
array (object) |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
string |
Any |
|
|
number |
Any |
|
|
number |
Any |
|
|
boolean |
Any |
|
|
string |
Any |
Examples of payload
{
"fileId": "string",
"path": "string",
"fileName": "string",
"extension": "string",
"type": "string",
"mimeType": "string",
"downloadPath": "string",
"previewPath": "string",
"thumbnailPath": "string",
"checksum": "string",
"cloudFileId": "string",
"size": 0,
"modifiedAt": 0,
"defaultAsset": false
}