Agent
Add Datasource to Agent
POST
/
api
/
v1
/
agents
/
:agent_id
/
datasources
This endpoint adds a datasource to a specific agent.
HTTP Request
POST https://api.gptlab.cloud/api/v1/agents/:agent_id/datasources
Path Parameters
agent_id
: The ID of the agent to which the datasource will be added.
Headers
- Content-Type: application/json
- Authorization: Bearer
<token>
Request Body The request body should include:
- datasourceId: String (required) - The ID of the datasource to be added to the agent.
Response The response will return a JSON object indicating the success of the operation and details of the datasource added to the agent.