---
title: "PATCH /ai/conversations/{public_id}"
method: PATCH
path: "/ai/conversations/{public_id}"
tags: ["AI Chat"]
---

# PATCH /ai/conversations/{public_id}

`PATCH /ai/conversations/{public_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/conversations/{public_id}`
- Auth: HTTP bearer

## Path parameters

- `public_id` string, required

## Request body

- RenameConversationRequest
  - `title` string, required: New human-facing title. Trimmed; must be non-empty after trimming.

## Response `200`

- ConversationResponse
  - `active_turn_id` string, nullable
  - `ai_model` string, required
  - `ai_permission_mode` string, required
  - `ai_provider` string, required
  - `ai_thinking_level` string, nullable
  - `application_id` integer, nullable
  - `context_id` string, required
  - `context_type` string, required
  - `context_usage` ContextWindowUsageResponse, nullable
    - `estimated` boolean, required
    - `limit_tokens` integer, nullable
    - `model` string, nullable
    - `source` string, required
    - `updated_at` string, required
    - `used_tokens` integer, required
  - `created_at` string, required
  - `failure` ChatFailureResponse, nullable
    - `code` string, required
    - `detail` string, required
    - `retryable` boolean, required
    - `title` string, required
  - `focus_project_id` integer, nullable: The project an assistant chat was started about, if any.
  - `kind` string, required: `ai` (a conversation with an AI harness) or `terminal` (an interactive shell in the workspace sandbox). Fixed at creation.
  - `last_activity_at` string, required
  - `project_id` integer, nullable
  - `public_id` string, required
  - `status` string, required
  - `title` string, nullable
  - `turn_started_at` string, nullable
  - `turn_status` string, required: Server-authoritative lifecycle for the current/most recent turn.

## Other responses

- `400`
- `401`
- `403`
- `404`

## Changes

- **2026-10-23** `7d41b820a372`: 1 info
  - added the optional property `focus_project_id` to the response with the `200` status
- **2026-10-23** `24af93ff5379`: 1 warning
  - removed the optional property `focus_project_id` from the response with the `200` status
- **2026-10-22** `842d42ed4659`: 1 info
  - added the optional property `focus_project_id` to the response with the `200` status
- **2026-10-22** `1a12a50b75ee`: 1 warning
  - removed the optional property `focus_project_id` from the response with the `200` status
- **2026-10-21** `79089e9f49ee`: 1 info
  - added the optional property `focus_project_id` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/conversations/:public_id/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
