Update an inbound email rule.
PATCH/api/v1/email-rules/{email_rule_id}email_rules:write
Changes the name, condition, config, enabled flag or stop flag. The order moves through the reorder route.
| Scope | email_rules:write |
| Asynchronous | No |
| MCP tool | update_email_rule |
| Portal permissions | edit_inbound_email_rules |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email_rule_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | EmailRulePatchInput |
application/merge-patch+json | EmailRulePatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json EmailRule or object |
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 |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | 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 | 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
EmailRule
| Field | Type | Required | Description |
|---|---|---|---|
config | object | Required | What the rule does with a matching email: format email_rule_config. |
created_by | UserRef or null | Required | |
created_date | string or null | Required | |
email_rule_id | string | Required | |
is_enabled | boolean | Required | |
parse_order | integer or null | Required | |
parsing_rule | object | Required | The condition an email must meet: format email_rule_condition. |
rule_name | string | Required | |
stop_processing | boolean | Required | Whether a match ends the rules tried after this one. |
EmailRulePatchInput
| Field | Type | Required | Description |
|---|---|---|---|
config | object or null | Optional | |
created_by | UserRefInput or null | Optional | |
created_date | string or null | Optional | |
email_rule_id | string or null | Optional | |
is_enabled | boolean or null | Optional | |
parse_order | integer or null | Optional | |
parsing_rule | object or null | Optional | |
rule_name | string or null | Optional | |
stop_processing | boolean or null | Optional |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |
UserRefInput
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Optional | |
kind | string: user, system, integration | Optional | |
user_id | string or null | Optional |