Skip to main content

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.

Scopeemail_rules:write
AsynchronousNo
MCP toolupdate_email_rule
Portal permissionsedit_inbound_email_rules

Parameters​

NameInTypeRequiredDescription
email_rule_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonEmailRulePatchInput
application/merge-patch+jsonEmailRulePatchInput

Responses​

StatusDescriptionBody
200Success.application/json EmailRule or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

EmailRule​

FieldTypeRequiredDescription
configobjectRequiredWhat the rule does with a matching email: format email_rule_config.
created_byUserRef or nullRequired
created_datestring or nullRequired
email_rule_idstringRequired
is_enabledbooleanRequired
parse_orderinteger or nullRequired
parsing_ruleobjectRequiredThe condition an email must meet: format email_rule_condition.
rule_namestringRequired
stop_processingbooleanRequiredWhether a match ends the rules tried after this one.

EmailRulePatchInput​

FieldTypeRequiredDescription
configobject or nullOptional
created_byUserRefInput or nullOptional
created_datestring or nullOptional
email_rule_idstring or nullOptional
is_enabledboolean or nullOptional
parse_orderinteger or nullOptional
parsing_ruleobject or nullOptional
rule_namestring or nullOptional
stop_processingboolean or nullOptional

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired

UserRefInput​

FieldTypeRequiredDescription
display_namestringOptional
kindstring: user, system, integrationOptional
user_idstring or nullOptional