Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Batch update experiments

PATCH/v1/private/experiments/batchBatch update experiments

Update multiple experiments

Request body

application/json
objectExperimentBatchUpdate

Request to batch update multiple experiments

idsarray of string · uuidrequired

List of experiment 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
experiment_scoresarray of object
Show child attributes
Show array items
namestringrequired

minLength 1

valuenumberrequired
metadataobject
namestring

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

statusstring

The status of the experiment

one of "running", "completed", "cancelled"

tagsarray of string

Tags

maxItems 50 · minItems 0 · uniqueItems true

Show child attributes

maxItems 50 · minItems 0 · uniqueItems true

tags_to_addarray of string

Tags to add

maxItems 50 · minItems 0 · uniqueItems true

Show child attributes

maxItems 50 · minItems 0 · uniqueItems true

tags_to_removearray of string

Tags to remove

maxItems 50 · minItems 0 · uniqueItems true

Show child attributes

maxItems 50 · minItems 0 · uniqueItems true

typestring

one of "regular", "trial", "mini-batch", "mutation"

Example request
{
  "ids": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "merge_tags": true,
  "update": {
    "experiment_scores": [
      {
        "name": "string",
        "value": 0
      }
    ],
    "metadata": {},
    "name": "string",
    "status": "cancelled",
    "tags": [
      "string"
    ],
    "tags_to_add": [
      "string"
    ],
    "tags_to_remove": [
      "string"
    ],
    "type": "mini-batch"
  }
}

Responses

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