domains

PUT /v1/domains/{domainId}/email-routing/rules/{ruleId}

Change a forwarding rule.

Све domains крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу domains.dns.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X PUT https://api.zinndigital.com/v1/domains/{domainId}/email-routing/rules/{ruleId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "matcher": <string>, "destinations": <string[]> }'

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Requires domains.dns.manage. The catch-all is a separate resource at the provider and cannot be changed through this path — use PUT .../email-routing/catch-all.

Параметри

НазивТипОбавезноШта је ово
domainId (path)UuidДаThe domain's id.
ruleId (path)stringДаThe provider's own id for the routing rule.

Тело захтева

НазивТипОбавезноШта је ово
matcherstringДа—
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Не—

Одговор

НазивТипОбавезноШта је ово
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