Edit Agent Corpus Connection
PUT
/v2/api/agent/{agent_id}/corpus/{corpus_id}
Agent Corpus Connection
This operation enables you to activate or deactivate the connection, thereby controlling whether the agent can access and utilize the corpus data for generating responses or processing information.
agent_id
and corpus_id
— to identify the specific connection. The body must contain the is_enabled
flag, which indicates whether the connection should remain active.Purpose of Agent ID
How to View Your Agent ID?
View Your Agent ID
Purpose of Corpus ID
How to View Your Corpus ID?
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/v2/api/agent/1297/corpus/1226' \
--header 'Content-Type: application/json' \
--data-raw '{
"is_enabled": false
}'
Response Response Example
200 - Example 1
{
"id": 918,
"agent": {
"id": 1297,
"agent_type": {
"id": 1,
"name": "QnA"
},
"instructions": [],
"agent_name": "FC Barca",
"domain": "",
"prefix_prompt": "abc",
"alias": "FCBarcelonaInfoAssistant_1297-dev@ejento.ai",
"is_deleted": false,
"created_by": "user@example.com",
"access": "Only me",
"project": 254,
"llm_config": 1
},
"corpus": {
"id": 1226,
"indexing_mode": {
"id": 1,
"mode": "exhaustive"
},
"name": "Sport Scribe_Default",
"description": null,
"owner": {
"id": 147,
"email": "user@example.com",
"is_superuser": true,
"first_name": "user",
"last_name": "user",
"organization": {
"id": 1,
"org_name": "Data Science Dojo"
}
},
"tags": []
},
"created_by": "user@example.com",
"created_on": "2025-01-30T20:52:09.495030Z",
"modified_by": "",
"modified_on": "2025-01-30T20:52:09.495057Z",
"is_enabled": false,
"is_default": false,
"is_deleted": false,
"connected_by": 147
}
Request
Path Params
agent_id
integer <int64>
required
Example:
1297
corpus_id
integer <int64>
required
Example:
1226
Body Params application/json