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 Parameters
test_case_uuidstring
Body Parameters
dataset_uuidstring
optional

Dataset against which the test‑case is executed.

descriptionstring
optional

Description of the test case.

metricsobject
optional
Hide ParametersShow Parameters
metric_uuidsarray of string
optional
namestring
optional

Name of the test case.

star_metricmetric_uuidstringnamestringsuccess_thresholdnumbersuccess_threshold_pctnumberAPIStarMetric
optional
test_case_uuidstring
optional

Test-case UUID to update

Returns
test_case_uuidstring
optional
versionnumber
optional

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 $GRADIENTAI_API_KEY"
200 Example
{
  "test_case_uuid": "\"123e4567-e89b-12d3-a456-426614174000\"",
  "version": 123
}