create_scenario
mutationSince v1.0Create a scenario (what-if projection) within a twin, with its own timeline. The step size dt must be 1/N for a positive integer N (e.g. 1, 0.5, 0.25). If the twin has a time unit, pass a step such as {"count": 1, "unit": "week"} instead of dt, and dt is worked out from it. live_data marks the scenario as fed by the twin's data source. Applied immediately and broadcast to connected users in real-time.
Example Request
{"twin_id": "twin-uuid", "name": "Baseline", "start_time": 0, "end_time": 10, "dt": 1}Example Response
{"success": true, "operation_count": 1, "versions": [43], "created": [{"kind": "scenario", "id": "2e77...", "label": "Baseline"}]}This content was written collaboratively with AI.