Edit published draft on X
edit_published_draftEdit the root post of a published draft on X to update its text and re-attach media or quote tweets. Use this to revise a live post after publishing.
Instructions
Edit the root post of a published draft via POST /2/tweets with edit_options.previous_post_id. Requires X Premium; edits are limited (~30 minutes / 5 edits) and each edit creates a new post id (stored locally). Re-attaches media (re-uploaded from mediaPaths) and quoteTweetId when present. Polls and community posts cannot be edited. Only the thread root is edited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Draft id. | |
| text | Yes | New text for the root post. | |
| paidPartnership | No | Optional paid partnership flag for the edited post. |