For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • Python SDK
    • Reference
    • REST API Client
  • Typescript SDK
    • Overview
    • Opik TS
    • Prompts
    • Opik Query Language (OQL)
  • Rest API
    • Overview
        • POSTApply changes to dataset items
        • PATCHBatch update dataset items
        • GETFind datasets
        • POSTCreate dataset
        • PUTCreate/update dataset items
        • POSTCreate dataset items from CSV file
        • POSTCreate dataset items from spans
        • POSTCreate dataset items from traces
        • GETGet dataset by id
        • PUTUpdate dataset by id
        • DELDelete dataset by id
        • POSTDelete dataset by name
        • POSTDelete dataset items
        • POSTDelete datasets
        • GETDownload dataset export file
        • POSTExpand dataset with synthetic samples
        • GETFind dataset items with experiment items
        • POSTGet dataset by name
        • GETGet experiment items stats for dataset
        • GETGet dataset export job status
        • GETGet all dataset export jobs
        • GETGet dataset item by id
        • PATCHPartially update dataset item by id
        • GETGet dataset items
        • GETGet dataset items output columns
        • PUTMark dataset export job as viewed
        • POSTStart dataset CSV export
        • POSTStream dataset items
        • GETCompare latest version with draft
        • POSTCreate version tag
        • DELDelete version tag
        • GETList dataset versions
        • POSTRestore dataset to a previous version
        • POSTRetrieve dataset version by name
        • PATCHUpdate dataset version
LogoLogo
Copy to LLMGithubGo to App
Rest APIAPI ReferenceDatasets

Batch update dataset items

PATCH
/v1/private/datasets/items/batch
PATCH
/api/v1/private/datasets/items/batch
$curl -X PATCH http://localhost:5173/api/v1/private/datasets/items/batch \
> -H "Content-Type: application/json" \
> -d '{
> "update": {}
>}'
Update multiple dataset items
Was this page helpful?
Previous

Find datasets

Next
Built with

Request

This endpoint expects an object.
updateobjectRequired
Dataset item update request
idslist of stringsOptional

List of dataset item IDs to update (max 1000). Mutually exclusive with ‘filters’.

filterslist of objectsOptional
dataset_idstringOptionalformat: "uuid"
Dataset ID. Required when using 'filters', optional when using 'ids'.
merge_tagsbooleanOptional

If true, merge tags with existing tags instead of replacing them. Default: false. When using ‘filters’, this is automatically set to true.

Errors

400
Bad Request Error