PUT - Disable Email Forwarding for the account

Purpose

The API is used to disable the Email Forwarding configured for the account. 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. 
mailForward ObectMail Forward object with the provided parameters
mailForwardTo StringThe Email Address of the account to which the Email Forwarding should be enabled. 
reason StringReason for disabling Email forwarding

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String 

disableMailForward

 To disable Mail Forward for the account.

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample Request

Copied{
   "zuid": "1111111",
   "mailForward": [
      {
         "mailForwardTo": "backup@mydomain.com",
         "reason": "Account to be deleted"
      }
   ],
   "mode": "disableMailForward"
}

Sample Request (Using User Authentication)

Copied{
   "mailForward": [
      {
         "mailForwardTo": "backup@mydomain.com",
         "reason": "Account to be deleted"
      }
   ],
   "mode": "disableMailForward"
}