update_draft
Replace an existing draft's content completely, not just patch it. Overwrite body, subject, recipients, and attachments in a single operation.
Instructions
Replace the content of an existing draft (full replacement, not a patch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| to | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| bcc | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| from | No | Connected address or an available send-as address | |
| draftId | Yes | ||
| subject | No | Defaults to "Re: ..." when replying | |
| bodyHtml | No | HTML body | |
| bodyText | No | Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines. | |
| replyAll | No | With replyToMessageId: reply to all original recipients | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| attachments | No | ||
| replyToMessageId | No | Message being replied to; threads correctly and computes recipients if "to" is omitted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |