PUT - Delete Email Forwarding

Purpose

This API is used to delete email forwarding configured for an email address. 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. 
mailForwardTo* StringThe Email Address of the account to which the Email Forwarding should be enabled. 
type*StringThe reason for deleting the Email Forwarding setup for the email address

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String 

deleteMailForward

 To delete email forwarding configured for the authenticated account.

type* String
  • type
  • user
  • filter
  • admin
The value to remove the email forwarding based on the reason why it was removed. 

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
   "zuid": "1111111",
   "mailForward": [
      {
         "type": "user",
         "mailForwardTo": "backup@mydomain.com"
      }
   ],
   "mode": "deleteMailForward"
}			

Sample Request (Using User Authentication)


				{
   "mailForward": [
      {
         "type": "user",
         "mailForwardTo": "backup@mydomain.com"
      }
   ],
   "mode": "deleteMailForward"
}