domains

PUT /v1/domains/{domainId}/email-routing/rules/{ruleId}

Change a forwarding rule.

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

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

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

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

Спробувати

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

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

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

Деталі

Requires `domains.dns.manage`. The catch-all is a separate resource at the provider and cannot be changed through this path — use `PUT .../email-routing/catch-all`.

Параметри

НазваТипОбов'язковеЩо це таке
domainId (path)UuidТакThe domain's id.
ruleId (path)stringТакThe provider's own id for the routing rule.

Тіло запиту

НазваТипОбов'язковеЩо це таке
matcherstringТак
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Ні

Відповідь

НазваТипОбов'язковеЩо це таке
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