Properties
| Name | Type | Description |
|---|---|---|
| subject | string | Subject line |
Subject line | ||
| plainTextBody | string | Plain text body (optional fallback) |
Plain text body (optional fallback) | ||
| toRecipients | array of EmailRecipientDto | To recipients — the draft's full To list |
To recipients — the draft's full To list | ||
| ccRecipients | array of EmailRecipientDto | CC recipients — the draft's full CC list |
CC recipients — the draft's full CC list | ||
| bccRecipients | array of EmailRecipientDto | BCC recipients — the draft's full BCC list |
BCC recipients — the draft's full BCC list | ||
| attachments | array of EmailAttachmentDto | Attachments the saved draft should have. Null = leave the draft's existing attachments |
Attachments the saved draft should have. Null = leave the draft's existing attachments | ||
| keepAttachmentIds | array of string | Ids (from the draft's current attachment list) of existing attachments to keep. Only |
Ids (from the draft's current attachment list) of existing attachments to keep. Only | ||
| htmlBody* | string | HTML body of the draft. Redeclared from the email service contract so it is cleaned as the request is read. |
HTML body of the draft. Redeclared from the email service contract so it is cleaned as the request is read. | ||
| practiceDocumentCodes | array of string | Codes of practice documents (tenant document library) to attach. Resolved to file |
Codes of practice documents (tenant document library) to attach. Resolved to file | ||
JSON Example
{
"subject": "string",
"plainTextBody": "string",
"toRecipients": [
{
"email": "...",
"name": "..."
}
],
"ccRecipients": [
{
"email": "...",
"name": "..."
}
],
"bccRecipients": [
{
"email": "...",
"name": "..."
}
],
"htmlBody": "string"
}