Implement external assets

This commit is contained in:
Malte Jürgens 2023-09-15 18:20:16 +02:00
parent 2e234300a2
commit a61e7c7a39
No known key found for this signature in database
22 changed files with 826 additions and 119 deletions

View file

@ -13623,9 +13623,15 @@
},
{
"type": "file",
"description": "attachment to upload",
"description": "attachment to upload (this parameter is incompatible with `external_url`)",
"name": "attachment",
"in": "formData"
},
{
"type": "string",
"description": "url to external asset (this parameter is incompatible with `attachment`)",
"name": "external_url",
"in": "formData"
}
],
"responses": {
@ -19001,6 +19007,14 @@
"format": "int64",
"x-go-name": "Size"
},
"type": {
"type": "string",
"enum": [
"attachment",
"external"
],
"x-go-name": "Type"
},
"uuid": {
"type": "string",
"x-go-name": "UUID"
@ -20979,6 +20993,11 @@
"description": "EditAttachmentOptions options for editing attachments",
"type": "object",
"properties": {
"browser_download_url": {
"description": "(Can only be set if existing attachment is of external type)",
"type": "string",
"x-go-name": "DownloadURL"
},
"name": {
"type": "string",
"x-go-name": "Name"