---
title: "Clickhouse Threads Partial Update 2"
method: PATCH
path: "/clickhouse/threads/{thread_identifier}/"
tags: ["logs"]
---

# Clickhouse Threads Partial Update 2

`PATCH /clickhouse/threads/{thread_identifier}/`

PATCH handler with superadmin lock and field protection.

Checks:
1. Object lock (is_managed=True -> non-superadmins can't modify)
2. Field protection (non-superadmins can't modify specific fields)

## Path parameters

- `thread_identifier` string, required

## Headers

- `Authorization` string, required

## Request body

- PatchedCHThreadDetailRequest — Serializer for detailed thread data from CHThread model. Includes full text content and thread logs functionality.
  - `id` string
  - `thread_identifier` string
  - `thread_unique_id` string
  - `organization_name` string
  - `environment` string
  - `organization_id` string
  - `unique_organization_id` string
  - `organization_key_id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `timestamp` string, date-time
  - `log_count` integer
  - `prompt_tokens` integer
  - `completion_tokens` integer
  - `tokens` integer
  - `cost` number, double
  - `tokens_per_second` number, double
  - `latency` number, double
  - `time_to_first_token` number, double
  - `input` string
  - `output` string
  - `storage_object_key` string
  - `prompt_messages` unknown
  - `completion_message` unknown
  - `completion_messages` unknown

## Response `200`

- CHThreadDetail — Serializer for detailed thread data from CHThread model. Includes full text content and thread logs functionality.
  - `id` string, required
  - `thread_identifier` string, required
  - `thread_unique_id` string
  - `organization_name` string
  - `environment` string
  - `organization_id` string
  - `unique_organization_id` string
  - `organization_key_id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `timestamp` string, date-time
  - `log_count` integer, required
  - `prompt_tokens` integer, required
  - `completion_tokens` integer, required
  - `tokens` integer, required
  - `cost` number, double, required
  - `tokens_per_second` number, double, required
  - `latency` number, double, required
  - `time_to_first_token` number, double, required
  - `prompt` string, required
  - `completion` string, required
  - `system` string, required
  - `input` string
  - `output` string
  - `storage_object_key` string
  - `prompt_messages` unknown
  - `completion_message` unknown
  - `completion_messages` unknown
  - `tools` string, required
  - `tool_calls` string, required
  - `full_request` string, required
  - `full_response` string, required
  - `metadata` string, required

---

[API](https://skmtc.net/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.net/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keywordsai/api-reference/versions/c26d550029f8/schema)
