curl --request POST \
--url https://api.example.com/v1/policy-engine/policies \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": "<string>",
"projectId": "<string>",
"name": "<string>",
"description": "<string>",
"rule": {
"addressWhitelist": {
"enabled": true,
"allowedAddresses": [
{}
],
"denyAll": true
},
"amountLimit": {
"enabled": true,
"dailyLimit": "<string>",
"perTxLimit": "<string>",
"currency": "<string>"
},
"approvalFlow": {
"enabled": true,
"threshold": "<string>",
"approvers": [
{}
],
"requiredApprovals": 123
}
},
"priority": 123,
"enabled": true
}
'