Decision

Evaluate environment decision

Evaluates a decision using the release deployed to a specific environment.

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

Request

Path parameters

projectIdstring required

ProjectId or projectKey

environmentIdstring required

EnvironmentId or environmentKey

*string required

Decision document key

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 environment 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.