> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vouchmark.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rename chat

> Rename a Vouch AI conversation.

Updates a chat's title. Only the chat's owner can rename it.

<Note>
  Vouch AI endpoints require a positive wallet balance.
</Note>

## Path parameters

<ParamField path="chatId" type="string" required>
  The chat session ID.
</ParamField>

## Body

<ParamField body="title" type="string" required>
  The new title. Cannot be empty.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.vouchmark.com/v1/chat/chat_aBcD.../title \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"title": "TIN reinstatement plan"}'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "message": "Chat title updated successfully",
    "chat": {
      "id": "chat_aBcD...",
      "title": "TIN reinstatement plan"
    }
  }
  ```
</ResponseExample>

Returns `400` if `title` is empty, or `404` if the chat does not exist or is not yours.
