Knowledge base
Attach files to agent
Attach multiple knowledge-base files to an agent.
POST/knowledge_base/attach
Bearersession
Body
3 fields
·
List of knowledge-base file IDs to attach.
ID of the agent to attach files to.
Instruction to the agent on when to consult these files.
curl -X POST 'https://backend.omnidim.io/api/v1/knowledge_base/attach' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "file_ids": [ 17686 ], "agent_id": 158910, "when_to_use": "Use these documents to answer billing-related questions." }'
Example response
{ "success": true, "message": "1 files attached to agent successfully" }
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
