Update a knowledge source
Change a knowledge source’s name, text or active state.
File names and file content are read-only. Renaming does not re-index. Clearing text removes the old search chunks. Turning a source off keeps its text and chunks but stops using it on calls.
Authorizations
An org API key: Authorization: Bearer phk_…
Headers
Optional. Must be the key's org.
Path Parameters
The knowledge source's ID.
Body
New Markdown text. Empty text removes old search chunks. Files are read-only.
2000000Whether calls use the source. Turning it off keeps its text and chunks.
New name. Uploaded file names are read-only.
1 - 255Response
Successful Response
Something an agent knows: a document, an uploaded file or a website page.
The agent it belongs to.
The text the agent uses, in Markdown. null when there is none, as for most uploaded files.
The knowledge source's ID.
Whether the agent uses it on calls. A source can be turned off without deleting it.
The name shown in the web app. null when it has none.
The type of this object, always knowledge_source.
"knowledge_source"document is text written in the web app, file an uploaded file, website a scraped web page. Known values: document, file, website. More can be added, so handle values you don't recognize.
The page's address, for a website. null for other types.

