Skip to main content
PATCH
Update document from Extended Markdown

Authorizations

Authorization
string
header
required

Short-lived, Developer-API-audience token obtained by the trusted MCP service through token exchange (mcp_at_...). Raw MCP resource tokens are rejected.

Path Parameters

documentId
string
required

Document ID

Body

application/json
content
string

Replacement Extended Markdown content. Omit only when updating metadata such as variables/defaults/stylePresetId.

Example:

"# Updated Report\n\nNew content."

document
object

Document settings to replace/merge with current settings.

stylePresetId
string | null

Set, replace, or clear the referenced workspace or built-in system style preset.

variables
object

Replacement variables object

abbreviations
object

Replacement abbreviation map

defaults
object

Defaults to merge with the current inline defaults

citations
string[]

Replacement citations array in CSL-JSON format

style
object

Replacement style metadata

Response

Updated document represented as Extended Markdown

id
string
required

Document ID

title
string
required

Document title

projectId
string
required

Project ID the document belongs to

content
string
required

Extended Markdown representation of the latest snapshot

document
object
required

Document settings

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
stylePresetId
string | null

Referenced workspace or built-in system style preset, if any

variables
object

Variables for template substitution

abbreviations
object

Abbreviation map

defaults
object

Inline defaults

citations
string[]

Citations array

style
object

Style metadata

revision
number

Current content revision