Create a ChatThread-Corpus connection
POST
/api/v2/chat-threads/{chatthread_id}/corpora/{corpus_id}
Chat Thread/Corpus Connectionv2
This association allows the system to track which chat thread is connected to which corpus, enabling more efficient data management, retrieval, and analysis.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v2/chat-threads//corpora/'
Response Response Example
201 - Example 1
{
"success": true,
"message": "string",
"data": {
"id": 0,
"chatthread": {
"id": 0,
"corpus_id": 0,
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"modified_by": "string",
"modified_on": "2019-08-24T14:15:22Z",
"title": "string",
"is_deleted": true,
"chat_id": "string",
"agent": 0,
"user": 0
},
"corpus": {
"id": 0,
"indexing_mode": {
"id": 0,
"mode": "exhaustive"
},
"name": "string",
"description": "string",
"owner": {
"id": 0,
"email": "user@example.com",
"is_superuser": true,
"first_name": "string",
"last_name": "string",
"organization": {
"id": 0,
"org_name": "string"
}
},
"tags": [
"string"
]
},
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"modified_by": "string",
"modified_on": "2019-08-24T14:15:22Z",
"is_deleted": true,
"connected_by": 0
}
}
Request
Path Params
chatthread_id
integerÂ
required
corpus_id
integerÂ
required