Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Partially update dataset item by id

PATCH/v1/private/datasets/items/{itemId}Partially update dataset item by id

Partially update dataset item by id. Only provided fields will be updated.

Parameters

itemIdstring · uuidpathrequired

Request body

application/json
objectDatasetItem_Write
dataobjectrequired
descriptionstring

pattern (?s)^\s*(\S.*\S|\S)\s*$

evaluatorsarray of object
Show child attributes
Show array items
configobjectrequired
namestringrequired

minLength 1

typestringrequired

one of "llm_judge", "code_metric"

execution_policyobject
Show child attributes
pass_thresholdinteger · int32

maximum 100 · minimum 1

runs_per_iteminteger · int32

maximum 100 · minimum 1

idstring · uuid

Stable item identifier. On write, used as the upsert key. If omitted, a new ID is generated. Remains the same across dataset versions

sourcestringrequired

one of "manual", "trace", "span", "sdk"

span_idstring · uuid
tagsarray of string

uniqueItems true

Show child attributes

uniqueItems true

trace_idstring · uuid
Example request
{
  "data": {},
  "description": "string",
  "evaluators": [
    {
      "config": {},
      "name": "string",
      "type": "code_metric"
    }
  ],
  "execution_policy": {
    "pass_threshold": 0,
    "runs_per_item": 0
  },
  "id": "00000000-0000-0000-0000-000000000000",
  "source": "manual",
  "span_id": "00000000-0000-0000-0000-000000000000",
  "tags": [
    "string"
  ],
  "trace_id": "00000000-0000-0000-0000-000000000000"
}

Responses

204No content
404Dataset item not found
Documentation menu