Run a simulation plan
Changed onDeprecated: use POST /v1/simulation/run, which does the same thing and can also take the plan configuration inline, so a one-off run does not have to create a plan first.
Creates and executes a job for an existing simulation run plan. Optionally provide runtime variables to override plan-defined variables.
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/simulation/plan/{planId}/job
- AuthHTTP bearer
Path parameters
Simulation run plan ID
Request body
Example request
{
"variables": {
"orderNumber": "12345",
"environment": "staging"
}
}Response
Successfully triggered simulation run plan
Example response
{
"data": {
"simulationRunPlanId": "9a8b7c6d-5e4f-3210-abcd-ef9876543210",
"simulationRunPlanJobId": "7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f",
"status": "PENDING",
"createdAt": "2024-01-15T10:30:00Z"
}
}Changes
- info
added the non-success response with the status
- info
- breaking
the response's body type changed from no type to
objectfor status - info
for the
pathrequest parameterplanId, the type was generalized from no type tostring, and format from no format touuid - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking