Change a rule
patch/workspace/inbox/rules/{id}
Before you call
- Credential
Authorization: Bearer $KEY- Scope
inbox:write- Graphql
Mutation.inboxRuleUpdate- Sdk
inbox.rule.update- Cli
inbox rule update
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- namestringAt most 80 characters.
- enabledboolean
- positionintegerAt least 0. At most 1000.
- scopeInboxstring (uuid) or null
- scopeMailboxstring or null
- matchstringOne of: all, any.
- conditionslist of object
- fieldstringrequiredOne of: from, from_domain, to, subject, body, mailbox, has_attachment, is_reply, category, sentiment, lang, label.
- opstringrequiredOne of: contains, not_contains, equals, not_equals, starts_with, ends_with, matches, is_true, is_false.
- valuestringAt most 200 characters.
- fieldstringrequired
- actionslist of object
- stopboolean
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring