Skip to content

Update

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

To update an evaluation test-case send a POST 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_threshold_pctnumberAPIStarMetric
optional
test_case_uuidstring
optional
Returns
test_case_uuidstring
optional
versionnumber
optional

The new verson of the test case.

formatint32
Request example cURL
curl https://api.digitalocean.com//v2/gen-ai/evaluation_test_cases/$TEST_CASE_UUID \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $GRADIENTAI_API_KEY" \
    -d '{}'
200 Example
{
  "test_case_uuid": "test_case_uuid",
  "version": 0
}