dots.v2.genAi.simulation_runs.byRun_uuid().cancel.patch()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.simulation_runs.byRun_uuid(run_uuid).cancel.patch(body: ApiCancelSimulationRunInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCancelSimulationRunOutput>

Description

To cancel an in-progress simulation run, send a PATCH request to /v2/gen-ai/simulation_runs/{run_uuid}/cancel.

Parameters

Path Parameters

run_uuid string required

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

UUID of the simulation run to cancel. Returned by CreateSimulationRun
and listed via ListSimulationRuns. The run must be in a non-terminal
status; already-terminal runs return an error.

Request Body

runUuid string optional

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

UUID of the run to cancel.

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.simulation_runs
    .byRun_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").cancel.patch({
    runUuid: "123e4567-e89b-12d3-a456-426614174000",
});

Response Example

Show Response Example
{
  "simulation_run": {
    "agent_config": {
      "agent_deployment_uuid": "123e4567-e89b-12d3-a456-426614174000",
      "agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
      "name": "example name"
    },
    "created_at": "2023-01-01T00:00:00Z",
    "created_by_user_email": "[email protected]",
    "created_by_user_id": "12345",
    "deleted_at": "2023-01-01T00:00:00Z",
    "evaluation_run_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "exploration_budget": 123,
    "failure_reason": "example string",
    "episodes_finished": 123,
    "judge_model_name": "example name",
    "judge_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "max_turns": 123,
    "name": "example name",
    "result_summary": {
      "total_duration_sec": "12345"
    },
    "run_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "scenario_count": 123,
    "scenario_set_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "status": "SIMULATION_RUN_STATUS_UNSPECIFIED",
    "total_episodes": 123,
    "updated_at": "2023-01-01T00:00:00Z",
    "user_simulator_model_name": "example name",
    "user_simulator_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "workflow_uuid": "123e4567-e89b-12d3-a456-426614174000"
  }
}

More Information

See /v2/gen-ai/simulation_runs/{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.