Solve
POST/scenarios/:scenarioId/solve
Solve a scenario goal for a given diagnostic. The payload of the request is a JSON expression where the target achievability, chosen diagnostic and goalId are specified.
Optionally, when solving for a goal/diagnostic we can specify the resultMode for the solution to be executed in by passing it through the payload object
All the available diagnostics can be found in the Appendix.
Request
Path Parameters
scenarioId stringrequired
The scenario's id
- application/json
Body
required
goalId stringrequired
The id of the goal to be solved.
diagnosticType stringrequired
Which diagnostic should be run to solve the goal.
achievability integerrequired
Target achievability to solve for.
resultMode string
Possible values: [NOMINAL, REAL]
Default value: NOMINAL
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
solutionId string
The ID of the solution for the given variables passed through.
{
"solutionId": "string"
}
Not Found
Internal Server Error
Loading...