Atualizar regra automática
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.
Requisição
Respostas
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 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.
X-Idempotency-Key reused with a different body.
Schema validation failure; a referenced entity not in the tenant; or the merged rule loses its last criterion/action.
Rate limit exceeded for this token. Reads and writes have separate budgets, both on a 1-hour sliding window. The response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After — wait out Retry-After rather than retrying immediately.
Unhandled server error.