Update Document
PUT /api/writing/documents/{document_id}
PUT
/api/writing/documents/{document_id}
✏️ Update a document.
Legacy PUT endpoint — prefer POST /documents/save for new
code. Delegates content updates to WritingDocumentStore.save_html
so the atomic-write + fsync + owner-lock + reconciler guarantees
apply uniformly. Metadata-only updates (title/document_type/tags
with no content change) stay on the fast SQLite-only path.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” document_id
required
Document Id
Document ID
string
Document ID
Request Body
Section titled “Request Body ”Responses
Section titled “ Responses ”Successful Response
Response Update Document Api Writing Documents Document Id Put
object
key
additional properties
any
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context