Document

Update a document

Updated Dec 2, 2026

PUT/documents/{document_id}

A partial update — a field you omit keeps its stored value, and content: null clears it.

A version is recorded only when something actually changed, so a client that re-sends identical content does not grow the history. current_version and updated move only on a real change.

Authorization

AuthorizationstringHeaderrequired
Bearer <token>

Authorization: Bearer YOUR_API_KEY. /v2 accepts no other method.

Parameters

Path

document_idintegerrequired

Resolve one via GET /documents?search=.

Request body required

application/json
titlestring
minLength: 3maxLength: 500
contentstringnullable
document_typestring
tagsstring[]
maxItems: 50
statusenum<string>
Allowed values"draft""published""archived"

Responses

OK

statusstring
dataDocument

The published shape of a document. Fields are added over time and never removed — ignore any you do not recognise.