Edit a scheduled post or a draft
update_postChanges a post that is still SCHEDULED, or a DRAFT: its caption, the caption of single accounts, its media, its accounts, or its time. Read the post with get_post first: media_file_ids and account_ids REPLACE the whole list, so send every one that should remain. A scheduled post must still fit every platform after the change, or nothing is changed. A draft takes no time (publish_draft gives it one). Platform options (YouTube title, TikTok settings, covers, the first comment) cannot be changed, and a TikTok account cannot be added: cancel and create again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | The main caption. | |
| task_id | Yes | ||
| timezone | No | IANA timezone name. | |
| account_ids | No | The post's accounts. REPLACES the whole list: an account left out is removed from the post. All must be in the post's social group. | |
| scheduled_at | No | New local wall-clock time, read in `timezone` (or the post's own timezone). Scheduled posts only. | |
| media_file_ids | No | The post's media, in order. REPLACES the whole list; an empty list removes all media. A custom cover is dropped when the media changes. | |
| captions_by_account | No | Texts for single accounts, added to the ones already there: { "<account id>": "text" }. An empty text removes that account's own caption, so it gets the main one again. |