Set the order rules are tried in.
POST/api/v1/email-rules/reorderemail_rules:write
Lists every rule once, in its new order. A rule missing from the list, or listed twice, is refused.
| Scope | email_rules:write |
| Asynchronous | No |
| MCP tool | reorder_email_rules |
| Portal permissions | reorder_inbound_email_rules |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | EmailRuleReorderInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json EmailRuleOrder |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
EmailRuleOrder
| Field | Type | Required | Description |
|---|---|---|---|
email_rule_ids | array of string | Required |
EmailRuleReorderInput
| Field | Type | Required | Description |
|---|---|---|---|
email_rule_ids | array of string | Required |