domains

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

Change a forwarding rule.

Todos os endpoints de domains

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão domains.dns.manage; uma chave sem ela é recusada com 403, e não 404.

Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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`.

Parâmetros

NomeTipoObrigatórioO que é
domainId (path)UuidSimThe domain's id.
ruleId (path)stringSimThe provider's own id for the routing rule.

Corpo da requisição

NomeTipoObrigatórioO que é
matcherstringSim
destinationsstring[]Sim
actionEmailRoutingActionNão`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringNão
enabledbooleanNão

Resposta

NomeTipoObrigatórioO que é
rule_idstringSim
matcherstringSimThe address this rule applies to. Empty for the catch-all.
destinationsstring[]Sim
actionEmailRoutingActionSim`drop` is a chosen behaviour — it is how a catch-all silently discards spam — and is never inferred from an empty destination list.
namestringSim
enabledbooleanSim
catch_allbooleanSim
unsupportedbooleanSim`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…

Erros que este endpoint pode retornar

401 · 403 · 404 · 422 · 429 · 503