---
title: "Update an Evaluation Test Case."
method: PUT
path: "/v2/gen-ai/evaluation_test_cases/{test_case_uuid}"
tags: ["DigitalOcean-public.v2-new_GradientAI Platform"]
---

# 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_uuid` string, required

## Request body

- ApiUpdateEvaluationTestCaseInputPublic
  - `dataset_uuid` string — Dataset against which the test‑case is executed.
  - `description` string — Description of the test case.
  - `metrics` ApiEvaluationTestCaseMetricList
    - `metric_uuids` string[]
  - `name` string — Name of the test case.
  - `star_metric` ApiStarMetric
    - `metric_uuid` string
    - `name` string
    - `success_threshold` number, float — The success threshold for the star metric. This is a value that the metric must reach to be considered successful.
    - `success_threshold_pct` integer — The success threshold for the star metric. This is a percentage value between 0 and 100.
  - `test_case_uuid` string — Test-case UUID to update

## Response `200`

A successful response.

- ApiUpdateEvaluationTestCaseOutput
  - `test_case_uuid` string
  - `version` integer — The new verson of the test case.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

## Changes

- **2025-10-16** `cb3bf9b21459` — 2 info
  - api tag `DigitalOcean-public.v2-new_GradientAI Platform` added
  - api tag `GradientAI Platform` removed
- **2025-07-18** `f8e8c290636c` — 1 info
  - endpoint added
- **2025-07-17** `5fc9af728e82` — 1 breaking
  - api removed without deprecation
- **2025-07-17** `f8e8c290636c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/digitalocean/apis/digitalocean-api/changes/v2/gen-ai/evaluation_test_cases/:test_case_uuid/put.md)

---

[API](https://skmtc.dev/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.dev/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
