API operation · mail group
PATCH
/domains/{name}/mail/forwarders/{local}
First published 3 Oct 2026
0.1.0Unchanged since publicationReplace a forwarder's destinations
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailallAnswers200 OK
Supply the complete replacement list as an array of 1 to 20 destination email addresses in destinations. Duplicate entries count toward the limit and are stored once. Each destination must differ from the forwarder's own email address.
The forwarder must already exist. The API returns 400 if destinations is missing or has the wrong type or length. The 200 response contains the updated forwarder in forwarder.
Administrators, the domain's owner and the owner's reseller can call this operation with a token that has the mail scope.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredlocalpath ·LocalPartRequireddestinationsarray of MailAddressRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X PATCH "$API/domains/example.com/mail/forwarders/info" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"destinations": [
"text"
]
}'Response ·
200 OK{
"forwarder": {
"address": "info@example.com",
"created_at": "2026-09-09T10:15:00Z",
"destinations": [
"text"
],
"domain": "example.com",
"id": 1,
"local_part": "text"
}
}Errors
17 errors, each a status and a sentence400--address is required400<what> must be text without control characters, 1 to <max> characters400A forwarder needs one to twenty destination addresses400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid port400Invalid setting key401Authentication required404No such forwarder: <address>404Setting '<key>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/patch-domains-name-mail-forwarders-local/