---
title: "Rename an AI conversation"
method: PATCH
path: "/api/{org_id}/ai/chats/{session_id}"
tags: ["AI"]
---

# Rename an AI conversation

`PATCH /api/{org_id}/ai/chats/{session_id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/ai/chats/{session_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/ai/chats/:session_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Sets the title of the caller's conversation. A title set here is never replaced by the automatically generated one.

## Path parameters

- `org_id` string, required
- `session_id` string, required

## Request body

- object
  - `title` string, required

## Response `200`

Renamed

- object

## Other responses

- `400`: Invalid title
- `404`: Unknown conversation

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
