Delete a turn
DELETE/v2/chats/:chat_id/turns/:turn_id
Delete a turn from a chat. This will delete all subsequent turns in the chat.
Request
Path Parameters
Possible values: Value must match regular expression cht_.+$
The ID of the chat.
Possible values: Value must match regular expression trn_.+$
The ID of the turn.
Header Parameters
Possible values: >= 1
The API will make a best effort to complete the request in the specified seconds or time out.
Possible values: >= 1
The API will make a best effort to complete the request in the specified milliseconds or time out.
Responses
- 204
- 403
- 404
Successfully deleted a turn.
Permissions do not allow deleting the turn.
- application/json
- Schema
- Example (from schema)
Schema
The messages describing why the error occurred.
The ID of the request that can be used to help Vectara support debug what went wrong.
{
"messages": [
"Internal server error."
],
"request_id": "string"
}
Corpus, chat, or turn not found.
- application/json
- Schema
- Example (from schema)
Schema
The ID cannot be found.
ID of the request that can be used to help Vectara support debug what went wrong.
{
"id": "string",
"messages": [
"string"
],
"request_id": "string"
}