Skip to main content
PUT
/
simulate
/
scenarios
/
{scenario_id}
/
edit
/
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 '{
"prompt": "You are a customer with the following characteristics: {{persona}}. Currently, {{situation}}. You will receive a call from an agent named test-agent. Please respond naturally to the agent'\''s questions and provide any necessary information to assist with your appointment schedulings.\n"
}'
{
  "message": "Scenario updated successfully",
  "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

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 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