summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-07-22 13:43:51 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-22 13:43:51 +0200
commit7ca5bac7c678dff0e9fb33b3cf5824165ca9d3f1 (patch)
tree05bb76eac788eb391736c946605ab6318a22a0ee /docs/api
parent[docs] Add client_max_body_size 40M; to nginx docs (#727) (diff)
downloadgotosocial-7ca5bac7c678dff0e9fb33b3cf5824165ca9d3f1.tar.xz
[bugfix] Fix Toot CLI media attachments not working properly (#726)v0.3.8
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 1da03d662..334acb93b 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -161,6 +161,10 @@ definitions:
description: |-
Array of Attachment ids to be attached as media.
If provided, status becomes optional, and poll cannot be used.
+
+ If the status is being submitted as a form, the key is 'media_ids[]',
+ but if it's json or xml, the key is 'media_ids'.
+
in: formData
items:
type: string
@@ -422,6 +426,10 @@ definitions:
description: |-
Array of Attachment ids to be attached as media.
If provided, status becomes optional, and poll cannot be used.
+
+ If the status is being submitted as a form, the key is 'media_ids[]',
+ but if it's json or xml, the key is 'media_ids'.
+
in: formData
items:
type: string
@@ -3531,6 +3539,9 @@ paths:
- description: |-
Array of Attachment ids to be attached as media.
If provided, status becomes optional, and poll cannot be used.
+
+ If the status is being submitted as a form, the key is 'media_ids[]',
+ but if it's json or xml, the key is 'media_ids'.
in: formData
items:
type: string