Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Batch update threads

PATCH/v1/private/traces/threads/batchBatch update threads

Update multiple threads

Request body

application/json
objectTraceThreadBatchUpdate

Request to batch update multiple trace threads

idsarray of string · uuidrequired

List of thread model IDs to update (max 1000)

maxItems 1000 · minItems 1 · uniqueItems true

Show child attributes

maxItems 1000 · minItems 1 · uniqueItems true

merge_tagsboolean

If true, merge tags with existing tags instead of replacing them. Default: false

updateobjectrequired
Show child attributes
tagsarray of string

maxItems 50 · minItems 0 · uniqueItems true

Show child attributes

maxItems 50 · minItems 0 · uniqueItems true

tags_to_addarray of string

maxItems 50 · minItems 0 · uniqueItems true

Show child attributes

maxItems 50 · minItems 0 · uniqueItems true

tags_to_removearray of string

maxItems 50 · minItems 0 · uniqueItems true

Show child attributes

maxItems 50 · minItems 0 · uniqueItems true

Example request
{
  "ids": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "merge_tags": true,
  "update": {
    "tags": [
      "string"
    ],
    "tags_to_add": [
      "string"
    ],
    "tags_to_remove": [
      "string"
    ]
  }
}

Responses

204No Content
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu