domains

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

Set what happens to mail matching no other rule.

Alle domains Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung domains.dns.manage verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.

Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

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

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

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

Parameter

NameTypErforderlichWas es ist
domainId (path)UuidJaThe domain's id.

Anfragekörper

NameTypErforderlichWas es ist
destinationsstring[]Ja
actionEmailRoutingActionNein`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
enabledbooleanNein

Antwort

NameTypErforderlichWas es ist
rule_idstringJa
matcherstringJaThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Ja
actionEmailRoutingActionJa`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringJa
enabledbooleanJa
catch_allbooleanJa
unsupportedbooleanJa`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…

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 404 · 422 · 429 · 503