update_post
Edit draft or scheduled posts before publishing. Update caption, media, platforms, schedule time, or change status. Only send fields to change.
Instructions
Edit a draft or scheduled post before it publishes. Send only the fields to change — omitted fields keep their current values. Returns the updated post object. Posts that are already publishing, published, or failed cannot be edited. Common uses: reschedule by passing a new scheduledFor, fix a caption, swap attached media, or convert a draft to scheduled by passing status='scheduled' together with scheduledFor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | Id of the draft or scheduled post to edit, from list_posts. | |
| status | No | Move between draft and scheduled. Scheduling requires scheduledFor to be set (here or previously). | |
| caption | No | Replacement post text. | |
| mediaIds | No | Replacement carousel media ids (up to 10). Mutually exclusive with libraryItemId. | |
| platforms | No | Replacement list of target platforms (replaces the whole list, not a merge). | |
| scheduledFor | No | New auto-publish time, ISO 8601 UTC, in the future. | |
| libraryItemId | No | Replacement single media item id. Mutually exclusive with mediaIds. |