Edit Scenario
Updates a scenario's name, description, graph data, or simulator agent prompt.
https://api.futureagi.com/simulate/scenarios/{scenario_id}/edit/ Authentication
Path parameters
The scenario ID.
Request body
Updated scenario name. Max 255 characters. Cannot be blank or whitespace-only.
Updated scenario description.
Updated conversation graph structure. Replaces the active ScenarioGraph.graph_config.graph_data. If no active graph exists, a new one is created.
Updated simulator agent prompt text. Replaces the simulator_agent.prompt field.
Response
200 OK"Scenario updated successfully". ScenarioSchema — see List Scenarios for field reference). Errors
Validation error. The response includes an error message and a details object with per-field errors.
{
"error": "…",
"details": {
"name": ["Name cannot be empty or just whitespace."]
}
} Invalid or missing API credentials.
Scenario not found or does not belong to your organization.
{"error": "Scenario not found."} Unexpected server error.
{"error": "Failed to update scenario: <message>"}