AI Agents
Change a source
PATCH
Every type takes title. A website also takes url (a new address is read right away) and reread to read it again now; text takes body; an FAQ takes faq, replaced whole. A file keeps its content: delete it and add the new file. Needs the admin role. Needs AI Agent on the workspace's account; without it the endpoint answers 404 feature.unavailable.
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
knowledgeBaseId*stringsourceId*stringapplication/json- body
title?stringLength
1 <= length <= 120url?stringFormat
uriLength
length <= 500reread?booleanbody?stringLength
1 <= length <= 10000faq?array<>Items
1 <= items <= 50The source after the change.
application/json- response
data?Fields depend on type: url, readAt, and chars on a website, body on text, faq on an FAQ, and the file details on a file.
curl -X PATCH 'https://api.eksis.io/v1/ai-agents/library/knowledge/string/sources/string' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "string", "type": "website", "title": "string", "url": "string", "body": "string", "faq": [ { "question": "string", "answer": "string" } ], "fileName": "string", "fileType": "pdf", "fileSize": 0, "status": "pending", "error": "string", "readAt": "2019-08-24T14:15:22Z", "chars": 0, "createdAt": "2019-08-24T14:15:22Z" }}