---
title: "Rename Chat Endpoint"
method: POST
path: "/api/v1/rename-chat-title"
tags: ["Chat"]
---

# Rename Chat Endpoint

`POST /api/v1/rename-chat-title`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/rename-chat-title`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Rename a chat by updating its title

## Request body

- RenameChatRequest
  - `chat_id` string, required
  - `new_title` string, required

## Response `200`

Successful Response

- RenameChatResponse
  - `success` boolean, required
  - `message` string, nullable

## Other responses

- `401`: Unauthorized
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
