pydo.genai.update_scenario_set()
Generated on 1 Oct 2026
from pydo version
v0.43.0
Usage
client.genai.update_scenario_set(
scenario_set_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
body={
"name": "example name",
"scenario_set_uuid": "123e4567-e89b-12d3-a456-426614174000",
"scenarios": [...],
},
)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
scenario_set_uuidstring requiredUUID of the scenario set to update. Returned by
CreateScenarioSet
and listed viaListScenarioSets.namestring optionalExample:
example nameOptional new name. When set, must be non-empty and at most 255 characters.
scenario_set_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the scenario set to update.
scenariosarray of objects optionalOptional inline scenarios to replace the set contents. At least one of
name or scenarios is required.Show child properties
descriptionstring optionalExample:
example stringWhat the user tries to accomplish. Required.
exploration_budgetinteger optionalExample:
123Number of journeys to explore for this scenario. Defaults to 1 if unset.
max_turnsinteger optionalExample:
123Turn budget for the scenario. Falls back to the run-level default if unset.
namestring optionalExample:
example nameHuman-readable name for the scenario. Optional.
scenario_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Unique id for the scenario. Always generated by the API; any
customer-supplied value is ignored and overwritten.stopping_criteriaarray of strings optionalExample:
['example string']Judge stopping criteria. Required; must contain at least one entry.
user_personastring optionalExample:
example stringHow the user communicates (tone, role). Optional.
Request Sample
Response Example
More Information
See /v2/gen-ai/scenario_sets/{scenario_set_uuid} in the API reference for additional detail on responses, headers, parameters, and more.