Upsert Prompt Sandbox Scenario

Beta
Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id. If an id is provided and has a match, the scenario will be updated. If no id is provided or no match is found, a new scenario will be appended to the end. Note that a full replacement of the scenario is performed, so any fields not provided will be removed or overwritten with default values.

Path parameters

idstringRequiredformat: "uuid"
A UUID string identifying this sandbox.

Headers

X-API-KEYstringRequired

Request

This endpoint expects an object.
inputslist of objectsRequired
The inputs for the scenario
labelstringOptionalDefaults to Untitled Scenario
scenario_idstringOptional>=1 character
The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended.

Response

inputslist of objects
The inputs for the scenario
idstring
The id of the scenario
labelstring or nullDefaults to Untitled Scenario