Skip to content
  • Auto
  • Light
  • Dark

Update

Update an Evaluation Test Case.
put/v2/gen-ai/evaluation_test_cases/{test_case_uuid}

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

Path ParametersExpand Collapse
test_case_uuid: string
Body ParametersExpand Collapse
dataset_uuid: optional string

Dataset against which the test‑case is executed.

description: optional string

Description of the test case.

metrics: optional object { metric_uuids }
metric_uuids: optional array of string
name: optional string

Name of the test case.

star_metric: optional APIStarMetric
test_case_uuid: optional string

Test-case UUID to update

ReturnsExpand Collapse
test_case_uuid: optional string
version: optional number

The new verson of the test case.

formatint32
curl https://api.digitalocean.com/v2/gen-ai/evaluation_test_cases/$TEST_CASE_UUID \
    -X PUT \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN"
{
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "version": 123
}
Returns Examples
{
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "version": 123
}