Edit Saved Draft
mailbox_update_draftEdit a saved email draft without sending it; pass the draft ID and expected revision, and reload after a conflict before retrying changes.
Instructions
Edit a saved draft without sending it. Requires mailbox.read and mailbox.drafts.write. Pass the reviewed expected_revision; reload after a conflict before making another edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Visible copied recipients. | |
| to | No | Primary recipients; at most 50 total across To, Cc and Bcc. | |
| bcc | No | Hidden copied recipients. | |
| from | No | Authorised sender; defaults to this inbox. | |
| draftId | Yes | Stable draft ID. | |
| subject | No | Subject; may be empty. | |
| If-Match | No | Current draft ETag; expected_revision is also required. | |
| reply_to | No | Authorised reply addresses; defaults to this inbox. | |
| html_body | No | HTML body, preserved when saved. | |
| text_body | No | Plain-text body. | |
| mailbox_id | No | Mailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox. | |
| attachments | No | Attachments and inline images. | |
| custom_headers | No | Custom X-* headers. Writes reject X-SES-TENANT, X-SES-CONFIGURATION-SET and X-SES-MESSAGE-TAGS case-insensitively. On updates, omit this field to preserve saved headers, or pass {} to clear them. | |
| expected_revision | Yes | The revision that was reviewed; a stale value returns conflict. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |