domains

PUT /v1/domains/{domainId}/email-routing/catch-all

Set what happens to mail matching no other rule.

Усі кінцеві точки domains

Уся документація для розробників

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ключ повинен мати дозвіл domains.dns.manage; ключ без нього відхиляється з кодом 403, а не 404.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X PUT https://api.zinndigital.com/v1/domains/{domainId}/email-routing/catch-all \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "destinations": <string[]> }'

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

The catch-all is a separate resource at the provider and cannot be deleted, only set to drop. Requires domains.dns.manage.

Параметри

НазваТипОбов'язковеЩо це таке
domainId (path)UuidТакThe domain's id.

Тіло запиту

НазваТипОбов'язковеЩо це таке
destinationsstring[]Так
actionEmailRoutingActionНіdrop is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
enabledbooleanНі

Відповідь

НазваТипОбов'язковеЩо це таке
rule_idstringТак
matcherstringТакThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Так
actionEmailRoutingActionТакdrop is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringТак
enabledbooleanТак
catch_allbooleanТак
unsupportedbooleanТакtrue when the provider's rule uses a shape this API cannot express — a Worker target, say. Such a rule is shown read-only rather than hidden: hiding it would make this screen…

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422 · 429 · 503