From 7ca5bac7c678dff0e9fb33b3cf5824165ca9d3f1 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 22 Jul 2022 13:43:51 +0200 Subject: [bugfix] Fix Toot CLI media attachments not working properly (#726) --- docs/api/swagger.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/api') 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 -- cgit v1.2.3