Skip to main content
PUT
/
service
/
general-ledger
/
approval-rules
/
{rule_id}
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"
}

Request

Update an existing approval rule.

Path Parameters

rule_id
string
required
The approval rule ID

Body Parameters

min_amount
number
Minimum amount threshold
max_amount
number
Maximum amount threshold
is_active
boolean
Whether the rule is active
priority
integer
Priority order
rule_name
string
Human-readable name
approval_level
integer
Required approval level
approver_type
string
Approver type: role, user, manager
approver_role
string
Role required for approval
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"
}