---
title: "Share Trace"
method: PATCH
path: "/api/traces/{trace_unique_id}/"
tags: ["traces"]
---

# Share Trace

`PATCH /api/traces/{trace_unique_id}/`

Toggle is_public on a trace via ch_trace_metadata upsert.

ReplacingMergeTree — INSERT with newer updated_at supersedes old row.
PK hit on (org_id, trace_unique_id).

## Path parameters

- `trace_unique_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

No response body

- TracesShareTraceResponse200 — Empty response body

## Changes

- **2026-07-31** `c26d550029f8` — 3 breaking, 3 info
  - removed the request body
  - removed the required property `is_public` from the response with the `200` status
  - removed the required property `trace_unique_id` from the response with the `200` status
  - removed the non-success response with the status `400`
  - …2 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/traces/:trace_unique_id/patch.md)

---

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