Skip to content

Create Scenario

POST
/api/v1/replay/scenarios

Create and run a counterfactual strategy replay.

Validates 2-4 branches (SR-02) and horizon 1-12 months (SR-08). Returns 422 if the requested horizon exceeds the decision’s age (data availability gate).

Authorizations

Request Body required

object
branches
required
Array<object>
>= 2 items <= 4 items
object
alternative_action
required
string
label
required
string
decision_id
required
string
horizon_months
integer
default: 6 >= 1 <= 12
name
Any of:
string
note
Any of:
string

Responses

201

Successful Response

object
key
additional properties
any

422

Validation Error

object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string