Deleting Chat History
Function
Deletes a chat history based on a specified ID.
URI
DELETE /v1/{project_id}/applications/{application_id}/uni-search/chat-history/{chat_history_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition: Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. Constraints: N/A Value range: The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter. Default value: N/A |
application_id |
Yes |
String |
Definition: Application ID. For details about how to obtain the application ID, see Obtaining an Application ID. Constraints: Character string Value range: The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter. Default value: N/A |
chat_history_id |
Yes |
String |
Definition: Chat history ID. Constraints: N/A Value range: The value must be a string of 1 to 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
repo_id |
No |
String |
Definition: Knowledge base ID. This parameter is required for granting user permissions. Constraints: N/A Value range: 1 to 64 characters. Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
Response to a chat history deletion request.
None
Example Requests
Delete a single chat history record.
/v1/b25446daeb1a41a7953c5deba2b2677a/applications/be9b19bf-4865-4fb8-b9f8-2fd1fea98d76/uni-search/chat-history/d63d332e-d011-44a4-b723-d603d759c464
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Response to a chat history deletion request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot