Reordenar reglas automáticas
POST/automatic-rules/reorder
Rewrites position for one (company_id, scope) group so it matches ordered_ids (first → position 1). Requires scope finance.automatic_rules.write. ordered_ids must be the COMPLETE ordered set for that group — a partial or foreign set is rejected (422). Idempotent via X-Idempotency-Key. Returns 204.
Solicitud
Respuestas
- 204
- 400
- 401
- 403
- 409
- 422
- 500
Positions rewritten. No response body.
Malformed JSON body.
Missing / invalid / expired / revoked token.
Token lacks the finance.automatic_rules.write scope.
X-Idempotency-Key reused with a different body.
Schema validation failure; company_id not in the tenant; or ordered_ids is not the exact set for (company, scope).
Unhandled server error.