Delete ChatThread-Corpus Connection
DELETE
/v2/api/chat-thread/{chatthread_id}/corpus/{corpus_id}
Chat Thread
Overview
Once the connection is removed, the
corpus_id
field in the associated chat thread is set to null
,indicating that it is no longer linked to any corpus.
Functionality
chatthread_id
and corpus_id
.corpus_id
in the chat thread’s metadata is updated to null
.How to View Chat thread ID
chat_thread_id
, follow this guide:How to View Chat thread ID
How to View Your Corpus ID?
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/v2/api/chat-thread//corpus/'
Response Response Example
200 - Example 1
{
"success": true,
"message": "The ChatThread-Corpus connection has been deleted.",
"data": {
"id": 121,
"chatthread": {
"id": 4049,
"corpus_id": null,
"created_by": "user@example.com",
"created_on": "2025-01-07T16:45:32.959879Z",
"modified_by": "user@example.com",
"modified_on": "2025-01-15T22:58:16.674718Z",
"title": "Greeting",
"is_deleted": false,
"chat_id": null,
"agent": 1251,
"user": 160
},
"corpus": {
"id": 1345,
"indexing_mode": {
"id": 1,
"mode": "exhaustive"
},
"name": "Policy Whisperer_Default",
"description": null,
"owner": {
"id": 160,
"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-08T11:20:36.185275Z",
"modified_by": "",
"modified_on": "2025-01-08T11:20:36.185303Z",
"is_deleted": true,
"connected_by": 160
}
}
Request
Path Params
chatthread_id
integerÂ
required
Example:
4049
corpus_id
integerÂ
required
Example:
1345