Skip to main content
PATCH
Edit a saved draft

Authorizations

Authorization
string
header
required

Sendmux API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.

Headers

If-Match
string

Current draft ETag; expected_revision is also required.

Path Parameters

draftId
string
required

Stable draft ID.

Query Parameters

mailbox_id
string

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.

Body

application/json
expected_revision
integer
required

The revision that was reviewed; a stale value returns conflict.

attachments
object[]

Attachments and inline images.

Maximum array length: 10
bcc
object[]

Hidden copied recipients.

Maximum array length: 50
cc
object[]

Visible copied recipients.

Maximum array length: 50
custom_headers
object

Custom X- headers preserved with this revision.

from
object

Authorised sender; defaults to this inbox.

html_body
string

HTML body, preserved when saved.

Maximum string length: 1000000
reply_to
object[]

Authorised reply addresses; defaults to this inbox.

Maximum array length: 20
subject
string

Subject; may be empty.

Maximum string length: 998
text_body
string

Plain-text body.

Maximum string length: 1000000
to
object[]

Primary recipients; at most 50 total across To, Cc and Bcc.

Maximum array length: 50

Response

Saved draft and its revision.

meta
object
required
ok
enum<boolean>
required
Available options:
true
data
object
required