ApiApprovals

Add an approval threshold

Add a threshold. It applies to movements raised after this call. Anything already waiting keeps the rule it was raised under - an approver who has already agreed should not find their approval silently no longer counted.

POST
/api/b/v1/approval-policies

Add a threshold.

It applies to movements raised after this call. Anything already waiting keeps the rule it was raised under - an approver who has already agreed should not find their approval silently no longer counted.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

admin_access_token?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/b/v1/approval-policies" \  -H "Content-Type: application/json" \  -d '{    "subject_type": "payout",    "required_approvals": 1  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "subject_type": "payout",  "min_amount_minor": 0,  "currency": "string",  "required_approvals": 0,  "is_active": true}