Upsert Prompt Sandbox Scenario

Beta
POST

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

idstringRequired

A UUID string identifying this sandbox.

Request

This endpoint expects an object.
inputslist of objectsRequired

The inputs for the scenario

labelstringOptionalDefaults to Untitled Scenario
scenario_idstringOptional

The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended.

Response

This endpoint returns an object.
inputslist of objects

The inputs for the scenario

idstring

The id of the scenario

labelstringOptionalDefaults to Untitled Scenario