{
"actions": [
{
"type": "forward",
"value": [
"destinationaddress@example.net"
]
}
],
"enabled": true,
"matchers": [
{
"field": "to",
"type": "literal",
"value": "test@example.com"
}
],
"name": "Send to user@example.net rule.",
"priority": 0
}
curl --location --request PUT 'https://api.cloudflare.com/client/v4/zones//email/routing/rules/' \
--header 'Content-Type: application/json' \
--data-raw '{
"actions": [
{
"type": "forward",
"value": [
"destinationaddress@example.net"
]
}
],
"enabled": true,
"matchers": [
{
"field": "to",
"type": "literal",
"value": "test@example.com"
}
],
"name": "Send to user@example.net rule.",
"priority": 0
}'
{
"errors": [],
"messages": [],
"result": {},
"success": true
}