Update a document
Replace an existing document’s content with markdown, by its doc_… id. Update-only — an unknown id returns 404 document_not_found, never a silent create. Markdown the converter can’t represent (for example, a fenced code block) returns document_content_unrepresentable and nothing is saved. The write merges into the document’s live state, so it lands in any open editor. Requires scope: documents:write.
Authorizations
A Custral secret API key (sk_…), created in Settings → Applications. Sent as Authorization: Bearer sk_…. The X-Api-Key: sk_… header is also accepted and takes precedence. Never expose a secret key in a browser.
Path Parameters
The document id (doc_…).
Body
The body of an update-document request. The document id is in the path.
The new document body, as markdown. Replaces the document's content in full.
"## Notes\n\nUpdated by the integration."