update_draft
Updates a draft by overwriting only provided fields while keeping omitted ones. Re-provide attachments because they are not merged, and note that the draft ID changes.
Instructions
Updates a draft with merge semantics: given (non-empty) fields overwrite, omitted fields are kept. If only body is given the HTML body is cleared. WARNING: attachments are NOT merged; re-provide them or they are removed. The draft id changes (returned).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works. | |
| to | No | Primary recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works. | |
| bcc | No | Bcc recipients. Plain email addresses (e.g. "user@example.com"); "Name <user@example.com>" also works. | |
| body | No | Plain text body. Do NOT format with Markdown; use htmlBody for rich text. If htmlBody is also given, this is the plain-text alternative. | |
| draftId | Yes | ||
| subject | No | ||
| htmlBody | No | HTML body (valid HTML tags). | |
| attachments | No | Attachments. Combined size must not exceed 25MB. |