Mail rules
Изменить правило разбора почты
Changed onПравило передаётся целиком: условия и действия заменяются, а не дописываются.
patch/api/v1/mail/rules/{id}
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Path parameters
id, string uuid required
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
Mail Rule Input required
Создание и изменение правила; условия и действия передаются целиком
name, string required
enabled, boolean nullable
sort_order, integer nullable
match, 'all' | 'any'
Без значения — all
conditions, Mail Rule Condition[] required
actions, Mail Rule Action[] required
stop_processing, boolean nullable
Response
Обновлённое правило
Mail Rule 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, Mail Rule Condition[] required
actions, Mail Rule Action[] 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
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
5 more changes in this revision
- info