Description
Set up email forwarding.
Request URL
Mail API v1.0 POST /v1/forwarding
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | User Token |
email_id | - | plain | UUID | Email ID |
address | - | plain | string | Forwarding Address |
Response Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
forwarding | - | plain | dict | - |
email_id | - | plain | UUID | Email ID |
forwarding_id | - | plain | UUID | Forwarding ID |
address | - | plain | string | Forwarding Address |
Request Json
{ "email_id": "(uuid:email_id)", "address": "forward@example.com" }
Normal response codes
200 - Success
Error response codes
401 - Access Denied
404 - Not Found
409 - Duplicate
Repeatable
No
Example
curl -i -X POST \ -H "Accept: application/json" \ -H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \ -d '{ "email_id": "c78b7a9d", "address": "forward@example.com" }' \ https://mail-hosting.tyo1.cloud.z.com/v1/forwarding
HTTP/1.1 200 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json { "forwarding": { "email_id": "c78b7a9d", "forwarding_id": "28e50414998f0be", "address": "forward@example.com" } }