Update an automatic rule
PATCH/automatic-rules/:id
Partial update of criteria/actions and active. Requires scope finance.automatic_rules.write. scope and company_id are immutable (delete + recreate to move a rule); position is changed via POST /automatic-rules/reorder. The merged rule must still have at least one criterion and one action.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
Updated rule.
Malformed JSON body.
Missing / invalid / expired / revoked token.
Token lacks the finance.automatic_rules.write scope.
Rule not found within the tenant.
Schema validation failure; a referenced entity not in the tenant; or the merged rule loses its last criterion/action.
Unhandled server error.