---
title: "Save explicit inline edits to the same OneDrive file"
method: POST
path: "/v1/documents/microsoft-365/files/{fileId}/editor"
tags: ["Documents"]
---

# Save explicit inline edits to the same OneDrive file

`POST /v1/documents/microsoft-365/files/{fileId}/editor`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/documents/microsoft-365/files/{fileId}/editor`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Requires organization membership and Documents, and the member's Microsoft 365 connection with OneDrive read access. Other people's drives and SharePoint need the read-all-files permission. Saves also require Document editing, OneDrive write access (full file access outside the member's own OneDrive) and a matching file version.

## Path parameters

- `fileId` string, required

## Request body

- union
  - object
    - `kind` 'spreadsheet', required
    - `connectionId` string, required
    - `revision` string, required
    - `sheetId` string, required
    - `changes` object[], required
      - `row` integer, required
      - `column` integer, required
      - `value` string, required
      - `formula` boolean
  - object
    - `kind` 'document', required
    - `connectionId` string, required
    - `revision` string, required
    - `changes` object[], required
      - `sectionId` string, required
      - `runId` string, required
      - `value` string, required
  - object
    - `kind` 'text', required
    - `connectionId` string, required
    - `revision` string, required
    - `text` string, required

## Response `200`

Document result.

- object
  - `ok` true, required

## Other responses

- `400`: Unsupported file or edit.
- `409`: Connect Microsoft 365, or reload the changed file.

## Changes

- **2026-10-27** `78491ac9c743`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/documents/microsoft-365/files/:fileId/editor/post.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/8117bc7c5626?raw)
