Skip to content
POSThttps://app.evoriqa.com/api/v1/chatbots/{chatbotId}/sources/{sourceId}/toggle

Enable or disable a source

Turns a source on or off in retrieval without deleting it, so its chunks survive for re-enabling later. A missing `enabled` flag returns 422. Re-enabling a disabled source is plan-cap-checked (402 over the knowledge-source cap). **Changed September 2026:** the source body is now exactly the fields listed here — `storageKey`, `rawText`, `metadata` and other internal columns no longer ship. Read a source's text from `GET …/content`.

Requires scope knowledge:write

Warning:

Access is gated — enable it before your first call

The API is off by default. A request succeeds only when all three switches are on: the platform master switch (off by default), your organisation’s API toggle, and your plan or client entitlement. Any one off returns 403 API access is not enabled for this workspace.

Parameters

Request body

Content type: application/json

Request

Response

200 OK