---
title: "Update an unsent Outlook email draft"
method: PATCH
path: "/v1/capabilities/microsoft-365/mail-drafts/{messageId}"
tags: ["Capability Sources"]
---

# Update an unsent Outlook email draft

`PATCH /v1/capabilities/microsoft-365/mail-drafts/{messageId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/capabilities/microsoft-365/mail-drafts/{messageId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

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).

## Path parameters

- `messageId` string, required

## Request body

- Microsoft365MailDraftUpdateBody
  - `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 `200`

Outlook draft updated.

- Microsoft365MailDraftUpdateResponse
  - `ok` true, required
  - `draft` Microsoft365MailMessage, required
    - `id` string, required
    - `conversationId` string, required
    - `subject` string, required
    - `receivedDateTime` string, required
    - `preview` string, required
    - `from` Microsoft365EmailAddress, nullable, required
      - `name` string, required
      - `address` string, required
    - `to` Microsoft365EmailAddress[], required
      - `name` string, required
      - `address` string, required
    - `webLink` string, required
    - `hasAttachments` boolean, required
    - `isDraft` boolean, required
    - `isRead` boolean, required
    - `categories` string[], required
    - `parentFolderId` string, required
    - `cc` Microsoft365EmailAddress[], required
      - `name` string, required
      - `address` string, required
    - `body` string, required
    - `bodyContentType` string, required
    - `bodyTruncated` boolean, required

## Other responses

- `400`: A request parameter or payload is invalid.
- `401`: The caller must be signed in.
- `403`: The connection is blocked by organization policy.
- `409`: The calling member has not connected Microsoft 365 or is missing permission.
- `502`: Microsoft Graph rejected the request.

## Changes

- **2026-12-02** `79f1f5ef5c76`: 1 info
  - removed the non-success response with the status `404`
- **2026-11-30** `8491c9c1b679`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/capabilities/microsoft-365/mail-drafts/:messageId/patch.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
