Capability Sources

Update an unsent Outlook email draft

Changed on

Updates subject, body, or recipients on an existing unsent Outlook draft without sending it. Refuses messages that are not drafts. Requires Outlook draft permission (Mail.ReadWrite).

patch/v1/capabilities/microsoft-365/mail-drafts/{messageId}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

messageId, string required

Microsoft Graph message ID of an unsent Outlook draft.

Request body

Microsoft365MailDraftUpdateBody required
to, string[]
cc, string[]
bcc, string[]
subject, string
body, string
bodyContentType, 'text' | 'html'

How Outlook stores body: text (default) or html. Only allowed together with body.

Response

Outlook draft updated.

Microsoft365MailDraftUpdateResponse required
ok, true required
draft, Microsoft365MailMessage required

Changes