Raw schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"list",
"create_folder",
"upload",
"move",
"delete",
"update"
]
},
"folderUid": {
"type": "string"
},
"page": {
"type": "integer",
"exclusiveMinimum": 0
},
"pageSize": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 128
},
"sort": {
"type": "object",
"properties": {
"by": {
"type": "string",
"enum": [
"CREATED",
"UPDATED",
"ALPHABETICAL"
]
},
"order": {
"type": "string",
"enum": [
"ASC",
"DESC"
]
}
},
"required": [
"by",
"order"
],
"additionalProperties": false
},
"type": {
"type": "string",
"enum": [
"image",
"video",
"audio"
]
},
"flat": {
"type": "boolean",
"description": "List action: when true, returns every file across the whole Drive (all folders) instead of just the items directly inside `folderUid`. Folders are not returned in flat mode."
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"file": {
"type": "object",
"properties": {
"download_url": {
"type": "string",
"format": "uri"
},
"file_id": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"file_name": {
"type": "string"
}
},
"required": [
"download_url",
"file_id"
],
"additionalProperties": false
},
"url": {
"type": "string",
"format": "uri"
},
"itemUids": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 200
},
"itemUid": {
"type": "string",
"description": "Update action: uid of the file whose attributes to set."
},
"attributes": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Update action: custom key/value attributes to set on the file (e.g. `{ coverUrl }`)."
},
"targetFolderUid": {
"type": "string"
},
"permanent": {
"type": "boolean",
"description": "Delete action: true permanently purges; false/omitted moves to trash (recoverable)."
}
},
"required": [
"action"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}