domains
PUT /v1/domains/{domainId}/email-routing/catch-all
Set what happens to mail matching no other rule.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу domains.dns.manage; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
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 конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом 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. |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
destinations | string[] | Да | — |
action | EmailRoutingAction | Не | 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 | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
rule_id | string | Да | — |
matcher | string | Да | The address this rule applies to. Empty for the catch-all. |
destinations | string[] | Да | — |
action | EmailRoutingAction | Да | 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 | Да | — |
enabled | boolean | Да | — |
catch_all | boolean | Да | — |
unsupported | boolean | Да | 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