Skip to content
  • Auto
  • Light
  • Dark

Create

Create Evaluation Test Case.
post/v2/gen-ai/evaluation_test_cases

To create an evaluation test-case send a POST request to /v2/gen-ai/evaluation_test_cases.

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 array of string

Full metric list to use for evaluation test case.

name: optional string

Name of the test case.

star_metric: optional APIStarMetric
workspace_uuid: optional string

The workspace uuid.

ReturnsExpand Collapse
test_case_uuid: optional string

Test‑case UUID.

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