Skip to main content
POST
/
decision-definition
/
key
/
{key}
/
tenant-id
/
{tenant-id}
/
evaluate
Evaluate By Key And Tenant
curl --request POST \
  --url http://{host}:{port}/{contextPath}/decision-definition/key/{key}/tenant-id/{tenant-id}/evaluate \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "variables": {
    "amount": {
      "value": 600,
      "type": "Double"
    },
    "invoiceCategory": {
      "value": "Misc",
      "type": "String"
    }
  }
}'
[
  {
    "result": {
      "value": "management",
      "type": "String",
      "valueInfo": null
    }
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

key
string
required

The key of the decision definition (the latest version thereof) to be evaluated.

tenant-id
string
required

The id of the tenant the decision definition belongs to.

Body

application/json
variables
object | null

Response

Request successful.

{key}
object