domains
PUT /v1/domains/{domainId}/email-routing/catch-all
Set what happens to mail matching no other rule.
Hitelesítés
Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) domains.dns.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.
Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.
Próbálja ki
Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.
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[]> }'Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban
Részletek
The catch-all is a separate resource at the provider and cannot be deleted, only set to `drop`. Requires `domains.dns.manage`.
Paraméterek
| Név | Típus | Kötelező | Mi ez |
|---|---|---|---|
domainId (path) | Uuid | Igen | The domain's id. |
Kérés törzse
| Név | Típus | Kötelező | Mi ez |
|---|---|---|---|
destinations | string[] | Igen | — |
action | EmailRoutingAction | Nem | `drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list. |
enabled | boolean | Nem | — |
Válasz
| Név | Típus | Kötelező | Mi ez |
|---|---|---|---|
rule_id | string | Igen | — |
matcher | string | Igen | The address this rule applies to. Empty for the catch-all. |
destinations | string[] | Igen | — |
action | EmailRoutingAction | Igen | `drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list. |
name | string | Igen | — |
enabled | boolean | Igen | — |
catch_all | boolean | Igen | — |
unsupported | boolean | Igen | `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… |
Hibák, amelyeket ez a végpont visszaadhattatlan
401 · 403 · 404 · 422 · 429 · 503