/inboxes/{inbox_id}/drafts/{draft_id}Update an inbox draft
Updates the content of an unsent draft in an inbox. Send only the fields you want to change; sending attachments replaces all attachments, while sending text or html replaces the entire body. The merged draft must retain at least one non-empty field and no more than 50 combined recipients.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Fields to change on the draft. Omitted fields remain unchanged; sending text or html replaces the whole body, and sending attachments replaces every stored attachment.
The inbox_id and draft_id path parameters must be UUIDs identifying the inbox and draft. Include at least one of to, cc, bcc, subject, text, html, or attachments; the merged draft must retain at least one non-empty field, and its combined recipient count cannot exceed 50. subject must be 1 to 2000 characters and cannot contain only whitespace or a line break; each attachment must include non-empty content, filename, and content_type.