dots.v2.genAi.model_evaluation_runs.byEval_run_uuid().cancel.put()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.genAi.model_evaluation_runs.byEval_run_uuid(eval_run_uuid).cancel.put(body: ApiCancelModelEvaluationRunInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCancelModelEvaluationRunOutput>

Description

To cancel an in-progress model evaluation run, send a PUT request to /v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/cancel.

Parameters

Path Parameters

eval_run_uuid string required

Example: "123e4567-e89b-12d3-a456-426614174000"

UUID of the model evaluation run to cancel. Returned by CreateModelEvaluationRun
and listed via ListModelEvaluationRuns. The run must be in a non-terminal status
(queued, running_dataset, or evaluating_results); already-terminal runs return an
error.

Request Body

evalRunUuid string optional

Example: "12345678-1234-1234-1234-123456789012"

UUID of the model evaluation run to cancel. Returned by CreateModelEvaluationRun
and listed via ListModelEvaluationRuns. The run must be in a non-terminal status
(queued, running_dataset, or evaluating_results); already-terminal runs return an
error.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.genAi.model_evaluation_runs
    .byEval_run_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").cancel.put({
    evalRunUuid: "\"12345678-1234-1234-1234-123456789012\"",
});

Response Example

Show Response Example
{
  "run": {
    "candidate_model_name": "example name",
    "candidate_model_source": "CANDIDATE_MODEL_SOURCE_SERVERLESS",
    "candidate_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2023-01-01T00:00:00Z",
    "dataset_name": "example name",
    "dataset_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "eval_run_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "judge_model_name": "example name",
    "judge_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "name": "example name",
    "progress": {
      "candidate_rows_evaluated": 100,
      "judge_rows_evaluated": 95,
      "total_rows": 100
    },
    "status": "MODEL_EVALUATION_RUN_STATUS_UNSPECIFIED"
  }
}

More Information

See /v2/gen-ai/model_evaluation_runs/{eval_run_uuid}/cancel in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.