Skip to main content
PUT
/
simulate
/
scenarios
/
{scenario_id}
/
edit
/
Update scenario
curl --request PUT \
  --url https://api.futureagi.com/simulate/scenarios/{scenario_id}/edit/ \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Secret-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "graph": {},
  "prompt": "<string>"
}'
{
  "message": "<string>",
  "scenario": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "source": "<string>",
    "scenario_type": "DATASET",
    "organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "dataset": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "dataset_rows": 123,
    "status": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

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

Body

application/json
name
string

New scenario name

description
string

New scenario description

graph
object

Graph configuration data

prompt
string

System prompt for simulator agent

Response

200 - application/json

Scenario updated successfully

message
string
scenario
object