dots.v2.genAi.scenario_sets.post()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.scenario_sets.post(body: ApiCreateScenarioSetInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateScenarioSetOutput>Description
To create a scenario set, send a POST request to /v2/gen-ai/scenario_sets. Provide exactly one of scenarios or file_upload_scenario_set. The set is created in the ready state.
Parameters
fileUploadScenarioSetobject optionalUploaded scenario file to ingest. Provide this or
scenarios, not both.Show child properties
originalFileNamestring optionalExample:
example nameThe original file name
sizeInBytesstring optionalExample:
12345The size of the file in bytes
storedObjectKeystring optionalExample:
example stringThe object key the file was stored as
namestring optionalExample:
support-agent-scenariosThe name of the scenario set.
scenariosarray of objects optionalInline scenarios. Provide this or
file_upload_scenario_set, not both.Show child properties
descriptionstring optionalExample:
example stringWhat the user tries to accomplish. Required.
explorationBudgetinteger optionalExample:
123Number of episodes to explore for this scenario. Defaults to 1 if unset.
maxTurnsinteger 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.
scenarioUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Unique id for the scenario. Always generated by the API; any
customer-supplied value is ignored and overwritten.stoppingCriteriaarray of strings optionalExample:
["example string"]Judge stopping criteria. Required; must contain at least one entry.
userPersonastring optionalExample:
example stringHow the user communicates (tone, role). Optional.
Request Sample
Response Example
More Information
See /v2/gen-ai/scenario_sets in the API reference for additional detail on responses, headers, parameters, and more.