---
title: "Batch update threads"
method: PATCH
path: "/v1/private/traces/threads/batch"
tags: ["Traces"]
---

# Batch update threads

`PATCH /v1/private/traces/threads/batch`

Update multiple threads

## Request body

- TraceThreadBatchUpdate — Request to batch update multiple trace threads
  - `ids` string[], required — List of thread model IDs to update (max 1000)
  - `update` TraceThreadUpdate, required
    - `tags` string[]
    - `tags_to_add` string[]
    - `tags_to_remove` string[]
  - `merge_tags` boolean — If true, merge tags with existing tags instead of replacing them. Default: false

## Response `204`

No Content

## Other responses

- `400` — Bad Request

---

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