domains

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

Set what happens to mail matching no other rule.

Sve domains krajnje tačke

Autentifikacija

Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu domains.dns.manage; ključ bez nje se odbija sa 403, a ne sa 404.

Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.

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[]> }'

Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli

Detalji

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

Parametri

NazivVrstaObaveznoŠta je ovo
domainId (path)UuidDaThe domain's id.

Telo zahteva

NazivVrstaObaveznoŠta je ovo
destinationsstring[]Da
actionEmailRoutingActionNe`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
enabledbooleanNe

Odgovor

NazivVrstaObaveznoŠta je ovo
rule_idstringDa
matcherstringDaThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Da
actionEmailRoutingActionDa`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringDa
enabledbooleanDa
catch_allbooleanDa
unsupportedbooleanDa`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…

Greške koje ovaj krajnji tačka može da vrati

401 · 403 · 404 · 422 · 429 · 503