---
title: "Clickhouse Log Annotations Partial Update"
method: PATCH
path: "/clickhouse/log-annotations/{log_unique_id}/"
tags: ["logs"]
---

# Clickhouse Log Annotations Partial Update

`PATCH /clickhouse/log-annotations/{log_unique_id}/`

For ClickHouse ReplacingMergeTree tables, we cannot UPDATE key columns.
Instead, we INSERT a new row with the same key fields, and ClickHouse
will handle deduplication automatically.

## Path parameters

- `log_unique_id` string, required

## Headers

- `Authorization` string, required

## Request body

- PatchedCHLogAnnotationRequest
  - `unique_organization_id` string
  - `timestamp` string, date-time
  - `log_unique_id` string
  - `is_positive_feedback` integer
  - `note` string
  - `updated_at` string, date-time

## Response `200`

- CHLogAnnotation
  - `id` integer, required
  - `positive_feedback` string, required
  - `unique_organization_id` string
  - `timestamp` string, date-time
  - `log_unique_id` string
  - `is_positive_feedback` integer
  - `note` string
  - `updated_at` string, date-time

---

[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)
