Write Autorecover
POST /api/writing/autorecover/write
POST
/api/writing/autorecover/write
Write the current editor buffer to its autorecover file.
Called by the frontend autosave timer every N seconds while the user is typing. Does NOT update SQLite or ChromaDB — it’s a pure filesystem checkpoint of the editor buffer for crash recovery.
Request Body required
Section titled “Request Body required ” AutoRecoverWriteRequest
Body for POST /writing/autorecover/write.
Mirrors the editor buffer for a single document. The .asd file is overwritten in place — only the most recent autorecover per doc is kept.
object
documentId
required
Documentid
string
title
required
Title
string
content
required
Content
string
Responses
Section titled “ Responses ”Successful Response
AutoRecoverWriteResponse
Response from POST /writing/autorecover/write.
object
documentId
required
Documentid
string
autorecoverPath
required
Autorecoverpath
string
written
required
Written
boolean
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