Skip to main content
Changes a source. Only what the body gives changes. When what agents read changes, the source is read again (processing); moving it to another collection or switching it on or off doesn’t need that.
Needs the agents.knowledge:write scope.

Path parameters

Body

Request

Response

200 OK — the source as it is now. A source has its id, kind (article, faq, file or website), title (an FAQ’s question), its collection, whether agents use it (active) and when it last changed. status is processing while it is read, then ready — or failed, with the reason in error. An article or FAQ has its body; a website its url, how often it is checked for changes (refresh) and how many pages it reads; a file its file type and size in bytes.

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.