API Docs / Schemas / CreateMailboxDraftRequest

CreateMailboxDraftRequest

Request to create a mailbox draft, extending the email service contract with practice
document attachments resolved server-side by code (same pattern as sending a new email).

Properties

Name Type Description
subjectstring

Subject line

Subject line

htmlBody*string

HTML body of the draft

HTML body of the draft

plainTextBodystring

Plain text body (optional fallback)

Plain text body (optional fallback)

toRecipientsarray of EmailRecipientDto

To recipients

To recipients

ccRecipientsarray of EmailRecipientDto

CC recipients

CC recipients

bccRecipientsarray of EmailRecipientDto

BCC recipients

BCC recipients

attachmentsarray of EmailAttachmentDto

Attachments to include. Null or empty = no attachments.

Attachments to include. Null or empty = no attachments.

practiceDocumentCodesarray of string

Codes of practice documents (tenant document library) to attach. Resolved to file
content server-side, so the browser never round-trips the document bytes.

Codes of practice documents (tenant document library) to attach. Resolved to file
content server-side, so the browser never round-trips the document bytes.

JSON Example

{
  "subject": "string",
  "htmlBody": "string",
  "plainTextBody": "string",
  "toRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "ccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ]
}

Used By Operations