Decision
Evaluate decision
By default, decision should be published before it is evaluated.
post/api/projects/{projectId}/evaluate/{*}
Request
- The document declares no server URL.
- AuthAPI key in header X-Access-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdstring required
ProjectId or projectKey
*string required
Decision document key
Query parameters
versionIdstring uuid nullable
Optional version ID to evaluate a specific decision version instead of the published one
Request body
Example request
{
"context": {
"cart": {
"total": 1500
},
"customer": {
"country": "US",
"tier": "gold"
}
}
}Response
Successful decision evaluation result
Changes
No recorded changes to this operation across all 1 revision of this API.