Update a draft
update_draftReplace an existing draft's content while preserving threading. Omit fields to keep current values; the updated draft is saved before the old version is removed.
Instructions
Replace a draft's contents. Threading headers are carried over, the new version is saved before the old one is binned. Omit a field to keep what the draft already had.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| uid | Yes | ||
| body | No | ||
| attach | No | Files to attach, by path. Only from the allowed source directories. | |
| folder | No | Defaults to your Drafts folder. | |
| dry_run | No | Preview exactly what would happen and change nothing. Needs no confirmation. | |
| subject | No | ||
| uidvalidity | No | UIDVALIDITY of the folder; refuses on mismatch. | |
| from_address | No | Must be on the sender allowlist. |