Create Approval Decision

POST /v2/policy-approvals/{approvalId}/decisions

Creates an approval decision.

Required Permissions

NameConditions

Policies:Approvals:Approve

Always Required

Parameters

Path parameters

Path parameterDescription

approvalId

Unique identifier of the approval.

Request body

Request body fieldsRequired/OptionalDescriptionType

value

Required

Approved or Denied.

Enumerated Type

reason

Optional

Reason for decision.

String

Request Example

{
  "value": "Approved",
  "reason": "This is exactly what we need",
}

Response

Response example

{
  "id": "evl-...",
  "orgId": "or-...",
  "initiatorId": "us-...",
  "activityId": "xfr-...",
  "activityKind": "Wallets:Sign",
  "activity": {...},
  "status": "Pending",
  "expirationDate": "2023-12-22T21:16:16.659Z",
  "dateCreated": "2023-12-22T20:56:16.662Z",
  "dateUpdated": "2023-12-22T20:56:16.662Z",
  "decisions": [
    {
      "userId": "us-...",
      "dateActioned": "2023-12-22T20:56:16.662Z",
      "value": "Approved",
    },
  ],
  "evaluatedPolicies": [
    {
      "policyId": "plc-...",
      "triggerStatus": "Triggered",
      "reason": "Number of transactions (2) is above limit (2)."
    },
    {
      "policyId": "plc-...",
      "triggerStatus": "Triggered",
      "reason": "Cumulative transfer amount (EUR 20) is above limit (EUR 2)."
    }
  ]
}

Last updated