PUT - Delete copy during Email Forwarding

Purpose

The API is used to delete the Zoho Mail copy of email after forwarding the email. This can be done by the Admin for a user or by the user for himself.

Request URL 

Using Admin Authentication:

 http://<hostname>/api/organization/<zoid>/accounts/<accountid>

Using User Authentication:

http://<hostname>/api/accounts/<accountid>

Request Parameters

ParameterData TypeDescription
zuid* Integerzuid - The unique Zoho User Identifier for the organization 
mode* String mode - The mode of the From Email address added to the account. 
deleteCopy booleanSet the value to true or false, based on whether the copy of the email should be retained in Zoho or not. 

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String 

deleteZohoMailCopy

 To delete the Zoho Mail Copy or retain the copy based on the deleteCopy parameter passed

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample request (Using Admin Authentication)


				{
   "zuid": "1111111",
   "deleteCopy": "false",
   "mode": "deleteZohoMailCopy"
}			

Sample request (Using User Authentication)


				{
   "deleteCopy": "false",
   "mode": "deleteZohoMailCopy"
}