Mailboxes

Update a draft

Updates the fields you name and keeps the rest; null clears an optional field. A draft whose send waits for approval cannot change and conflicts.

patch/v1/mailboxes/{id}/drafts/{draftId}

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/mailboxes/{id}/drafts/{draftId}
  • Auth: API key in header x-api-key

Path parameters

idstring required
draftIdstring required

Request body

tostring[] nullable
ccstring[] nullable
bccstring[] nullable
replyTostring[] nullable
subjectstring nullable
textstring nullable
htmlstring nullable

Response

MailboxDraft

idstring required
channel'email' required
threadIdstring required
inReplyToMessageIdstring required
state'saved' | 'locked' | 'sent' required
lockedByActionIdstring required
tostring[] required
subjectstring nullable required
createdAtstring required
updatedAtstring required
endpointIdstring required
ccstring[] required
bccstring[] required
replyTostring[] required
htmlstring nullable required
textstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.