pydo.genai.update_evaluation_test_case()

Generated on 7 Jul 2026 from pydo version v0.39.0

Usage

client.genai.update_evaluation_test_case(
    test_case_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
    body={
        "dataset_uuid": "123e4567-e89b-12d3-a456-426614174000",
        "description": "example string",
        "metrics": {...},
        ...,
    },
)
Returns JSONRaises HttpResponseError

Description

To update an evaluation test-case send a PUT request to /v2/gen-ai/evaluation_test_cases/{test_case_uuid}.

Parameters

test_case_uuid string required

Test-case UUID to update

dataset_uuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

Dataset against which the test‑case is executed.

description string optional

Example: example string

Description of the test case.

metrics object optional
Show child properties
metric_uuids array of strings optional

Example: ['example string']

name string optional

Example: example name

Name of the test case.

star_metric object optional
Show child properties
metric_uuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

name string optional

Example: example name

success_threshold number optional

Example: 123

The success threshold for the star metric.
This is a value that the metric must reach to be considered successful.

success_threshold_pct integer optional

Example: 123

The success threshold for the star metric.
This is a percentage value between 0 and 100.

test_case_uuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

Test-case UUID to update

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "dataset_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "description": "example string",
  "metrics": {
    "metric_uuids": [
      "example string"
    ]
  },
  "name": "example name",
  "star_metric": {
    "metric_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "name": "example name",
    "success_threshold": 123,
    "success_threshold_pct": 123
  },
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000"
}

resp = client.genai.update_evaluation_test_case(test_case_uuid="\"123e4567-e89b-12d3-a456-426614174000\"", body=req)

Response Example

Show Response Example
{
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "version": 123
}

More Information

See /v2/gen-ai/evaluation_test_cases/{test_case_uuid} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.