v1

latestOpenAPI 3.1.02026-07-261344388.3 KB
Decision

Evaluate decision

By default, decision should be published before it is evaluated.

post/api/projects/{projectId}/evaluate/{*}

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

contextobject nullable

Evaluation context

traceboolean

Include decision trace in response

Example request

{
  "context": {
    "cart": {
      "total": 1500
    },
    "customer": {
      "country": "US",
      "tier": "gold"
    }
  }
}

Response

Successful decision evaluation result

{"stackTrail":"paths:/api/projects/{projectId}/evaluate/{*}:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown","description":"The computed result from the decision evaluation"}
performancestring

Total execution time of the decision

traceobject

Detailed trace of each node execution when trace is enabled