Evaluate Environment Decision
POST/api/projects/:projectId/environments/:environmentKey/evaluate/:documentPath
Evaluates a given decision from a release deployed to an environment
Request
Path Parameters
projectId uuidrequired
Project ID
environmentKey stringrequired
Environment Key
documentPath slash separated pathrequired
Document path
- application/json
Body
context any
Evaluation context, this data is passed to engine
trace booleannullable
Default value: false
Enabled debug trace of how the decision has been made
Responses
- 200
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
performance human readable time
Time spent on decision evaluation after it has been loaded
result object
Evaluation result based on provided context
trace objectnullable
Optional debug trace, provided when trace is set as true
{
"performance": "109.26µs",
"result": {
"shippingFee": 24.54
}
}
Loading...