domains

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

Change a forwarding rule.

Барлық domains соңғы нүктелері

Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Кілтте domains.dns.manage рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.

Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

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`.

Параметрлер

АтыTүріМіндеттіМазмұны
domainId (path)UuidИәThe domain's id.
ruleId (path)stringИәThe provider's own id for the routing rule.

Сұрау денесі

АтыTүріМіндеттіМазмұны
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Жоқ

Жауап

АтыTүріМіндеттіМазмұны
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