メインコンテンツまでスキップ

Create an inbound email rule.

POST/api/v1/email-rulesemail_rules:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

The condition and config are checked as the Portal checks them, and the rule runs as its creator unless the config names another user.

スコープemail_rules:write
非同期いいえ
MCP ツールcreate_email_rule
Portal の権限create_inbound_email_rules

パラメーター​

名前場所型必須説明
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonEmailRuleCreateInput

応答​

ステータス説明本文
201Success.application/json EmailRule または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

EmailRule​

フィールド型必須説明
configobject必須What the rule does with a matching email: format email_rule_config.
created_byUserRef または null必須
created_datestring または null必須
email_rule_idstring必須
is_enabledboolean必須
parse_orderinteger または null必須
parsing_ruleobject必須The condition an email must meet: format email_rule_condition.
rule_namestring必須
stop_processingboolean必須Whether a match ends the rules tried after this one.

EmailRuleCreateInput​

フィールド型必須説明
configobject必須
is_enabledboolean または null任意true when absent.
parse_orderinteger または null任意Last when absent; move rules with the reorder route.
parsing_ruleobject必須
rule_namestring必須
stop_processingboolean または null任意true when absent.

UserRef​

フィールド型必須説明
display_namestring必須
kindstring: user, system, integration または string必須
user_idstring または null必須