Policy

Evaluate Policies

This endpoint consults all policies and checks the ones that satisfy the request body’s conditions.

post/api/policy-engine/evaluate

Headers

Content-Typestring required

Describes the type of the content being sent

Acceptstring required

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand

Request body

resourcestring required

Scope on which this policy must be evaluated

contextobject required

Conditions that the Policy needs to satisfy

Response

idstring

Action ID

metadataobject

Metadata object from the current action

Example response

[
  {
    "id": "SendSlackMessage",
    "metadata": {
      "channel": "C01NJFF35R6",
      "relatedUsers": [
        "URUNDC2NB"
      ],
      "alertDescription": "Avoid selling products from Berenice with a discount greater than 70%."
    }
  }
]

Changes