Update Source Content
Replace the markdown body of an editable source artifact.
Used by the Library inline editor for agent-generated artifacts (reports, blog drafts) and any other markdown source where editing in place makes sense. Re-runs chunk + index so search stays fresh.
Path Parameters
source_id*Source Id
Query Parameters
space_id?|
Optional isolation space guard
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "http://127.0.0.1:14242/sources/string/content" \ -H "Content-Type: application/json" \ -d '{ "content": "string" }'{
"id": "string",
"source_type": "string",
"original_name": "string",
"mime_type": "string",
"file_path": "string",
"parsed_path": "string",
"source_url": "string",
"sha256": "string",
"size_bytes": 0,
"version": 1,
"space_id": "default",
"lifecycle_state": "ingested",
"chunk_count": 0,
"memory_count": 0,
"section_tree": "string",
"summary": "string",
"error_message": "string",
"created_at": "string",
"updated_at": "string",
"metadata": {},
"label_ids": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}