Edit a draft
drafts_updateChange a draft in a connected mailbox. A field the call leaves out stays as the draft has it. A mailbox whose provider is imap keeps the edited draft under a new id the answer names, and the old id then reads nothing; an old version its server did not remove stays in Drafts, named as previousVersionId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Who to copy. | |
| id | Yes | The id a draft tool answered, or the draftId a search or a read answered. | |
| to | No | Who the message is addressed to. | |
| bcc | No | Who to blind-copy. The other recipients are not told. | |
| body | No | The whole message text, a reply's quote included. Given without html, the draft becomes plain text. | |
| html | No | The whole message as HTML, for formatting; given without body, its plain-text version is read from it. An Outlook mailbox keeps only the HTML and writes the plain version from it. | |
| mailbox | Yes | The mailbox's name or its email address. | |
| subject | No | The subject line. | |
| attachments | No | Files to carry, each held by a connected mailbox of the draft's own provider or written out. Named, they replace the ones it holds, and an empty list removes them all. An Outlook draft takes on the new files before it gives up the old, so a replacement stopped midway is reported and may leave both. An Outlook draft sent while it is rewritten may lose its old files from the sent copy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| link | No | ||
| threadId | No | ||
| previousVersionId | No |