update_draft
Revise an existing draft in Yahoo Mail's Drafts folder by changing only the fields you pass; the message stays unsent and gets a new UID.
Instructions
Revise an existing draft in the Drafts folder. Only the fields you pass are changed; everything else (recipients, subject, reply threading, attachments) is kept. IMPORTANT: the draft gets a NEW UID on every update. Always use the UID returned by the most recent create/update call. The old version is removed. The email is NOT sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | New Cc address(es) (replaces the existing list; pass [] to clear) | |
| to | No | New recipient address(es) (replaces the existing list) | |
| bcc | No | New Bcc address(es) (replaces the existing list; pass [] to clear) | |
| uid | Yes | UID of the draft to revise (from the latest create_draft, create_reply_draft, or update_draft result) | |
| body | No | New plain-text body (replaces the whole body) | |
| html | No | New HTML body. Pass an empty string to remove the HTML version. | |
| subject | No | New subject line | |
| addAttachments | No | Paths of local files to add as attachments | |
| removeAttachments | No | Filenames of existing attachments to remove |