Mail rules

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

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

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

Request

  • Base URL: https://erp.akeda.ru
  • URL: https://erp.akeda.ru/api/v1/mail/rules/{id}
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://erp.akeda.ru/oauth2/authorize, token URL https://erp.akeda.ru/oauth2/token, scopes: akeda:delegate)

Request body

namestring required
enabledboolean nullable
sort_orderinteger nullable
match'all' | 'any'

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

stop_processingboolean nullable

Response

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

idstring uuid required
account_idstring uuid required
namestring required
enabledboolean required
sort_orderinteger required

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

match'all' | 'any' required

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

stop_processingboolean required

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

applied_countinteger required

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

last_applied_atstring date-time nullable required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.