Update Inbox Draft
update-inbox-draftPurpose: 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.
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, type, recipients, subject, attachments, the thread and message it replies to if any, and its timestamps 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. 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 | |
| subject | No | ||
| attachments | No |