domains

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

Change a forwarding rule.

Всички крайни точки в domains

Упълномощаване

Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението 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, за да можете да видите действителния отговор. Отворете този крайpoint в 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…

Грешки, които този крайpoint може да върне

401 · 403 · 404 · 422 · 429 · 503