diff options
author | 2025-02-01 17:14:49 -0800 | |
---|---|---|
committer | 2025-02-01 17:14:49 -0800 | |
commit | f5eee56bb13aee64557fa4358ace9c1cd2965f7f (patch) | |
tree | 3b56c48bf8bab96a7b5dd92b0fedea473d392b01 /docs/api | |
parent | [feature] Add `instance-stats-randomize` config option (#3718) (diff) | |
download | gotosocial-f5eee56bb13aee64557fa4358ace9c1cd2965f7f.tar.xz |
[bugfix] Swagger: fix media_ids[] param for creating statuses (#3722)
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/swagger.yaml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index d95825b6e..5ff5346bc 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -10261,7 +10261,8 @@ paths: name: status type: string x-go-name: Status - - description: |- + - collectionFormat: multi + description: |- Array of Attachment ids to be attached as media. If provided, status becomes optional, and poll cannot be used. @@ -10270,10 +10271,12 @@ paths: in: formData items: type: string - name: media_ids + name: media_ids[] type: array + uniqueItems: true x-go-name: MediaIDs - - description: |- + - collectionFormat: multi + description: |- Array of possible poll answers. If provided, media_ids cannot be used, and poll[expires_in] must be provided. in: formData @@ -10281,6 +10284,7 @@ paths: type: string name: poll[options][] type: array + uniqueItems: true x-go-name: PollOptions - description: |- Duration the poll should be open, in seconds. |