Skip to main content
PUT

Authorizations

X-Api-Key
string
header
required

API Key for authentication. Click here to access API Key

X-Secret-Key
string
header
required

Secret Key for authentication. Click here to access Secret Key

Path Parameters

scenario_id
string<uuid>
required

The UUID of the scenario to edit.

Body

application/json

A JSON object containing the fields to update. All fields are optional.

name
string

The new name for the scenario.

Maximum string length: 255
description
string | null

The new description for the scenario.

graph
object | null

The updated graph structure for the scenario. If the scenario does not have a graph, a new one will be created.

prompt
string | null

The new prompt for the simulator agent associated with the scenario. Supports templating variables like {{persona}} and {{situation}}.

Response

Scenario updated successfully.

message
string
Example:

"Scenario updated successfully"

scenario
object