Hosting Email Forward¶
/hosting-email-forward¶
GET¶
JSON response
array: Hosting Email Forward
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-email-forward" | python -m json.tool
POST¶
Create a new email forward/alias.
JSON request
|
string |
The hosting account ID for which to create the object. |
|
string |
The local part for the final email address. The account reference get’s appended. |
|
string |
A comma seperated list of email addresses to forward the email to. This may also be local email users to enable delivery and forwarding at the same time. |
JSON response
object: Hosting Email Forward
Sample
curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"account": "ac-12345",
"local": "myalias",
"destination": "info@example.com,user@mydomain.com",
}
' \
"{{api_base_url}}/hosting-email-forward" | python -m json.tool
/hosting-email-forward/{id}¶
GET¶
JSON response
object: Hosting Email Forward
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-email-forward/{id}" | python -m json.tool
PUT¶
Update an existing email forward/alias.
JSON request
|
string |
A comma seperated list of email addresses to forward the email to. This may also be local email users to enable delivery and forwarding at the same time. |
JSON response
object: Hosting Email Forward
Sample
curl \
--request PUT \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"destination": "info@example.com,user@mydomain.com",
}
' \
"{{api_base_url}}/hosting-email-forward/{id}" | python -m json.tool
DELETE¶
Sample
curl \
--request DELETE \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-email-forward/{id}" | python -m json.tool