Decision

Evaluate decision

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

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

Request

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

resultunknown
performancestring

Total execution time of the decision

traceobject

Detailed trace of each node execution when trace is enabled

Changes

No recorded changes to this operation across all 1 revision of this API.