Description
It changes emal forwarding settings whether it leaves a copy of a forwarded message in the mailbox or not.
Request URL
Mail API v1.0 PUT /v1/emails/(uuid:email_id)/action
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | User Token |
email_id | - | URI | UUID | Email ID |
forwarding_copy | - | plain | dict | - |
status | enable/disable | plain | string | enable:leave a copy of a forwarded message in the mailbox / disable:not leave a copy of a forwarded message in the mailbox |
Request Json
{ "forwarding_copy" : { "status": "enable" } }
Normal response codes
204 - 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" \ https://mail-hosting.tyo1.cloud.z.com/v1/emails/0c78b7a9d4/action
HTTP/1.1 204 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json