---
title: "Update a turn"
method: PATCH
path: "/v2/chats/{chat_id}/turns/{turn_id}"
tags: ["Chats"]
deprecated: true
---

# Update a turn

`PATCH /v2/chats/{chat_id}/turns/{turn_id}`

> **Deprecated.**

Updates a turn to disable or enable it.

## Path parameters

- `chat_id` string, required
- `turn_id` string, required

## Headers

- `Request-Timeout` integer
- `Request-Timeout-Millis` integer

## Request body

- UpdateTurnRequest — Request to update a specific turn (message exchange) within a chat conversation.
  - `enabled` boolean — Indicates whether to disable a turn. Disabling a turn also disables all subsequent turns. Enabling a turn is not implemented.

## Response `200`

Successfully modified the turn.

- Turn — A single message exchange in a chat conversation, representing one user input and the corresponding response.
  - `id` string, required — The ID of the turn.
  - `chat_id` string — The ID of the chat the turn resides in.
  - `query` string — The query made to produce this turn.
  - `answer` string — The response to the query.
  - `enabled` boolean — Indicates whether the turn is enabled and shown in future turns of the chat.
  - `created_at` string, date-time — Specifies when the turn was created.

## Other responses

- `403` — Permissions do not allow updating the turn.
- `404` — Corpus, chat, or turn not found.

---

[API](https://skmtc.net/vectara/apis/vectara-rest-api-v2.md) · [All operations](https://skmtc.net/vectara/apis/vectara-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vectara/vectara-rest-api-v2/revisions/fca567a46b3a/schema)
