Replace a document's body
Replace a document’s markdown body. To change only a part of the body, use edit_doc. Basement records a new version that you can restore. Read the document first with read_doc. You cannot change agent-memory documents (isAgentMemory in list_docs). Requires write access.
Authentication
AuthorizationBearer
A Basement key (bsmt_...), from Agents, Connect in the app.
Request
This endpoint expects an object.
docId
The document ID from list_docs
bodyMarkdown
The full new markdown body
changeSummary
One line on what changed and why
Response
The tool's answer.
ok
noop
true when the text was already the same
versionCount
The document's new version
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error