# Rename / star / delete a chat

`POST /api/v1/chats/{id}/{action}`

`rename` (`title`), `star` (`on`; toggles when omitted), `delete` (the chat is removed permanently with its questions and answers).

## Path parameters

| Field | Type | Description |
|---|---|---|
| `id` (required) | integer | Chat id. |
| `action` (required) | string | Action. Values: `rename`, `star`, `delete` |

## Body

| Field | Type | Description |
|---|---|---|
| `title` | string | New title (`rename`). |
| `on` | boolean | Star (`star`). |

## Response

```json 200
{
  "ok": true,
  "title": "Geciken aksiyonlar"
}
```
