---
title: "Update trace by id"
method: PATCH
path: "/v1/private/traces/{id}"
tags: ["Traces"]
---

# Update trace by id

`PATCH /v1/private/traces/{id}`

Update trace by id

## Path parameters

- `id` string, uuid, required

## Request body

- TraceUpdate
  - `project_name` string — If null and project_id not specified, Default Project is assumed
  - `project_id` string, uuid — If null and project_name not specified, Default Project is assumed
  - `name` string
  - `end_time` string, date-time
  - `input` JsonListString
  - `output` JsonListString
  - `metadata` JsonListString
  - `tags` string[] — Tags
  - `tags_to_add` string[] — Tags to add
  - `tags_to_remove` string[] — Tags to remove
  - `error_info` ErrorInfo
    - `exception_type` string, required
    - `message` string
    - `traceback` string, required
  - `thread_id` string
  - `ttft` number, double
  - `source` 'sdk' | 'experiment' | 'playground' | 'optimization' | 'evaluator'
  - `environment` string

## Response `204`

No Content

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
