---
title: "Rename thread"
method: PATCH
path: "/api/v1/threads/{threadId}"
tags: ["threads"]
---

# Rename thread

`PATCH /api/v1/threads/{threadId}`

## Path parameters

- `threadId` string, required

## Request body

- RenameThreadRequest
  - `title` string, nullable, required

## Response `200`

Thread

- ThreadEncoded
  - `id` string, required
  - `projectId` string, nullable, required
  - `authorId` string, nullable, required
  - `title` string, nullable, required
  - `titleCustom` boolean, required
  - `status` 'active' | 'waiting' | 'pending_user' | 'error' | 'ready_for_review' | 'idle' | 'archived', required
  - `archived` boolean, required
  - `lastModelId` string, nullable, required
  - `usage` UsageTotalsEncoded, required
    - `llmCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
    - `imageCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
    - `vmCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
    - `totalCredits` union, required
      - number
      - 'Infinity' | '-Infinity' | 'NaN'
  - `createdAt` string, required
  - `updatedAt` string, required
  - `lastActivityAt` string, nullable, required

## Other responses

- `401` — capy/Unauthorized
- `404` — capy/ThreadNotFound

## Changes

> 12 revisions in range; 4 could not be searched.

- **2026-08-19** `530d92ec3e63` — 1 info
  - added the required property `authorId` to the response with the `200` status
- **2026-08-15** `3a998a0e7870` — 1 info
  - added the required property `usage/imageCredits` to the response with the `200` status
- **2026-08-11** `792c11dd1007` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/capy/apis/capy-api/changes/api/v1/threads/:threadId/patch.md)

---

[API](https://skmtc.dev/capy/apis/capy-api.md) · [All operations](https://skmtc.dev/capy/apis/capy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/capy/capy-api/revisions/e9babb6783f3/schema)
