domains

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

Set what happens to mail matching no other rule.

כל נקודות הקצה מסוג domains

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה domains.dns.manage; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

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

פרמטרים

שםסוגנדרשמה זה
domainId (path)UuidכןThe domain's id.

גוף הבקשה

שםסוגנדרשמה זה
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.
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…

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 404 · 422 · 429 · 503