Skip to main content
PATCH
Reschedule or cancel a saved draft send

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; both revision and schedule version remain 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

Exact saved content revision.

expected_schedule_version
integer
required

Current schedule version; stale requests return conflict. Repeating the last identical request returns its current result.

Required range: 0 <= x <= 2147483647
scheduled_for
string<date-time> | null
required

New future time within 30 days, or null to cancel and make the draft editable. Cancellation fails once sending has begun.

Response

Saved draft and its revision.

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