Update Inbox Draft
update-inbox-draftUpdate a Resend inbox draft's recipients, subject, body, or attachments before sending; changes are saved to the draft and no email is sent.
Instructions
Purpose: Update a draft in a Resend inbox: change its recipients, its subject, its body, or its attachments. At least one of to, cc, bcc, subject, text, html, or attachments is required. This still sends nothing: the draft only goes out when send-inbox-draft is called.
NOT for: Changing which thread or message a draft replies to. Those are fixed when the draft is created. Not for editing a message already sent: sent mail cannot be changed.
Returns: The draft's id. Use get-inbox-draft to read the draft after the update.
When to use: User asks to change, rewrite, or fix a draft before it is sent. Omitting a field leaves it as it was; passing null for a field clears it. The draft must keep at least one non-empty field, so clearing the last one with null returns a 422. For attachments, an empty array also removes them all. Passing text or html replaces the whole body: the body part you leave out of that call becomes empty. Get the draft ID from list-inbox-drafts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | New email address to copy, or an array of addresses, replacing the draft's current ones. Pass null to clear the cc list; omit to leave it untouched. Across to, cc, and bcc a draft can carry at most 50 recipients in total. | |
| to | No | New recipient email address, or an array of addresses, replacing the draft's current ones. Pass null to clear the recipients; omit to leave them untouched. Across to, cc, and bcc a draft can carry at most 50 recipients in total. | |
| bcc | No | New email address to blind-copy, or an array of addresses, replacing the draft's current ones. Pass null to clear the bcc list; omit to leave it untouched. Across to, cc, and bcc a draft can carry at most 50 recipients in total. | |
| html | No | New HTML body for the draft. Pass null to clear the HTML body; omit to leave it untouched. | |
| text | No | New plain text body for the draft. Pass null to clear the plain text body; omit to leave it untouched. | |
| draftId | Yes | Draft ID. Use list-inbox-drafts to find draft IDs. | |
| inboxId | Yes | Inbox ID, or the inbox email address (e.g. "support@example.com"). Not the Resend receiving address. | |
| subject | No | ||
| attachments | No |