Update draft post
update_draftEdit an existing X draft's content—text, thread parts, poll, media, quote, community, or paid partnership. Resets an approved draft to draft for re-approval.
Instructions
Edit a draft's content (text, parts, poll, media, quote, community, paid partnership). Same link rule as create_draft: no http(s) URLs in the main post unless allowLinksInMainPost is true (only when the user explicitly insists). Pass null to clear an optional field. If the draft was already approved, this resets it back to "draft" status so it must be re-approved before publishing. To change a live post, use edit_published_draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Draft id. | |
| poll | No | New poll, or null to clear. | |
| text | No | New main post copy (no http(s) links unless allowLinksInMainPost). When parts is also set (or the draft is already a thread), text wins and becomes parts[0]. | |
| parts | No | New thread parts, or null to clear. Put URLs in parts[1+] only. | |
| mediaPaths | No | New media paths (1–4), or null to clear. | |
| communityId | No | Community id, or null to clear. | |
| quoteTweetId | No | Quote tweet id, or null to clear. | |
| paidPartnership | No | Paid partnership flag, or null to clear. | |
| shareWithFollowers | No | Share with followers (requires communityId), or null to clear. | |
| allowLinksInMainPost | No | Allow a URL in the main post (only if the user explicitly insists), or null to clear back to the default ban. |