Mail rules

Изменить правило разбора почты

Changed on

Правило передаётся целиком: условия и действия заменяются, а не дописываются.

patch/api/v1/mail/rules/{id}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

id, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Request body

MailRuleInput required

Создание и изменение правила; условия и действия передаются целиком

name, string required
enabled, boolean nullable
sort_order, integer nullable
match, 'all' | 'any'

Без значения — all

conditions, MailRuleCondition[] required
actions, MailRuleAction[] required
stop_processing, boolean nullable

Response

Обновлённое правило

MailRule required

Правило разбора входящей почты

id, string uuid required
account_id, string uuid required
name, string required
enabled, boolean required
sort_order, integer required

Порядок применения правил ящика

match, 'all' | 'any' required

Правило применяется при всех условиях или при любом из них

conditions, MailRuleCondition[] required
actions, MailRuleAction[] required
stop_processing, boolean required

Прекратить разбор письма после этого правила

applied_count, integer required

Сколько писем правило разобрало: единственный способ увидеть, что правило молчит из-за опечатки

last_applied_at, string date-time nullable required
created_at, string date-time required
updated_at, string date-time required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision