curl -X PUT https://kube.acho.io/service/general-ledger/approval-rules/APR-BILL-HIGH \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"min_amount": 15000,
"is_active": true,
"priority": 20
}'
{
"rule_id": "APR-BILL-HIGH",
"rule_name": "Bill - High Amount (Level 2 Required)",
"document_type": "bill",
"rule_type": "Amount Threshold",
"is_active": true,
"priority": 20,
"min_amount": 15000,
"max_amount": null,
"approval_level": 2,
"approver_type": "role",
"approver_role": "approve_level_2",
"updated_at": "2024-01-25T09:15:00Z",
"updated_by": "user-789"
}
Update an existing approval rule
curl -X PUT https://kube.acho.io/service/general-ledger/approval-rules/APR-BILL-HIGH \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"min_amount": 15000,
"is_active": true,
"priority": 20
}'
{
"rule_id": "APR-BILL-HIGH",
"rule_name": "Bill - High Amount (Level 2 Required)",
"document_type": "bill",
"rule_type": "Amount Threshold",
"is_active": true,
"priority": 20,
"min_amount": 15000,
"max_amount": null,
"approval_level": 2,
"approver_type": "role",
"approver_role": "approve_level_2",
"updated_at": "2024-01-25T09:15:00Z",
"updated_by": "user-789"
}
role, user, managercurl -X PUT https://kube.acho.io/service/general-ledger/approval-rules/APR-BILL-HIGH \
-H "Authorization: jwt YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"min_amount": 15000,
"is_active": true,
"priority": 20
}'
{
"rule_id": "APR-BILL-HIGH",
"rule_name": "Bill - High Amount (Level 2 Required)",
"document_type": "bill",
"rule_type": "Amount Threshold",
"is_active": true,
"priority": 20,
"min_amount": 15000,
"max_amount": null,
"approval_level": 2,
"approver_type": "role",
"approver_role": "approve_level_2",
"updated_at": "2024-01-25T09:15:00Z",
"updated_by": "user-789"
}