dots.v2.genAi.scenario_sets.byScenario_set_uuid().put()

Generated on 13 Nov 2026 from DoTs version v1.24.0

Usage

client.v2.genAi.scenario_sets.byScenario_set_uuid(scenario_set_uuid).put(body: ApiUpdateScenarioSetInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateScenarioSetOutput>

Description

To update a scenario set in place, send a PUT request to /v2/gen-ai/scenario_sets/{scenario_set_uuid}. Provide a new name and/or replacement scenarios. At least one is required. Replacing contents keeps the same scenario set UUID, remints scenario UUIDs, and is rejected unless the set is ready and no simulation run references it. There is no file-upload path on update.

Parameters

Path Parameters

scenario_set_uuid string required

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

UUID of the scenario set to update. Returned by CreateScenarioSet
and listed via ListScenarioSets.

Request Body

name string optional

Example: example name

Optional new name. When set, must be non-empty and at most 255 characters.

scenarioSetUuid string optional

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

UUID of the scenario set to update.

scenarios array of objects optional

Optional inline scenarios to replace the set contents. At least one of
name or scenarios is required.

Show child properties
description string optional

Example: example string

What the user tries to accomplish. Required.

explorationBudget integer optional

Example: 123

Number of episodes to explore for this scenario. Defaults to 1 if unset.

maxTurns integer optional

Example: 123

Turn budget for the scenario. Falls back to the run-level default if unset.

name string optional

Example: example name

Human-readable name for the scenario. Optional.

scenarioUuid string optional

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

Unique id for the scenario. Always generated by the API; any
customer-supplied value is ignored and overwritten.

stoppingCriteria array of strings optional

Example: ["example string"]

Judge stopping criteria. Required; must contain at least one entry.

userPersona string optional

Example: example string

How the user communicates (tone, role). Optional.

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.scenario_sets
    .byScenario_set_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").put({
    name: "example name",
    scenarioSetUuid: "123e4567-e89b-12d3-a456-426614174000",
    scenarios: [
        {
            description: "example string",
            explorationBudget: 123,
            maxTurns: 123,
            name: "example name",
            scenarioUuid: "123e4567-e89b-12d3-a456-426614174000",
            stoppingCriteria: [
                "example string",
            ],
            userPersona: "example string",
        },
    ],
});

Response Example

Show Response Example
{
  "scenario_set": {
    "bucket_name": "example name",
    "bucket_region": "example string",
    "created_at": "2023-01-01T00:00:00Z",
    "deleted_at": "2023-01-01T00:00:00Z",
    "description": "example string",
    "failure_reason": "example string",
    "generator_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "library_scenario_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "name": "example name",
    "scenario_count": 123,
    "scenario_set_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "source_export_id": "123e4567-e89b-12d3-a456-426614174000",
    "source_goal_description": "example string",
    "source_kind": "SCENARIO_SET_SOURCE_KIND_UNSPECIFIED",
    "spaces_key": "example string",
    "status": "SCENARIO_SET_STATUS_UNSPECIFIED",
    "updated_at": "2023-01-01T00:00:00Z",
    "workflow_uuid": "123e4567-e89b-12d3-a456-426614174000"
  }
}

More Information

See /v2/gen-ai/scenario_sets/{scenario_set_uuid} 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.