From f2b3dfb70a03d7abbd313c683d218985950e286d Mon Sep 17 00:00:00 2001 From: JakePaustian <87162217+JakePaustian@users.noreply.github.com> Date: Wed, 6 Dec 2023 05:57:15 -0600 Subject: [PATCH] An important parameter is missing from the API doc on editing a post #1239 (#1351) * Update content/en/methods/statuses.md --- content/en/methods/statuses.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/methods/statuses.md b/content/en/methods/statuses.md index 0640268a..3fc2e88c 100644 --- a/content/en/methods/statuses.md +++ b/content/en/methods/statuses.md @@ -1,3 +1,4 @@ + --- title: statuses API methods description: Publish, interact, and view information about statuses. @@ -1478,6 +1479,9 @@ language media_ids[] : Array of String. Include Attachment IDs to be attached as media. If provided, `status` becomes optional, and `poll` cannot be used. +media_attributes[][] +: Array of String. Each array includes id, description, and focus. + poll[options][] : Array of String. Possible answers to the poll. If provided, `media_ids` cannot be used, and `poll[expires_in]` must be provided. @@ -1852,3 +1856,4 @@ Status does not exist or is private. {{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/statuses/reblogs_controller.rb" caption="app/controllers/api/v1/statuses/reblogs_controller.rb" >}} {{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/statuses/sources_controller.rb" caption="app/controllers/api/v1/statuses/sources_controller.rb" >}} +