PUT - Change IMAP Status for a user

Purpose

The API is used to change the IMAP status of a user from enabled to disabled or vice-versa. 

Request URL 

Using Admin Authentication:

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

Using User Authentication:

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

Request Parameters

ParameterData TypeDescription
zuid* Integerzuid - The unique Zoho User Identifier for the organization 
accountid* Integer Account Id of the user for whom IMAP status has to be changed
imapAccessEnabled* BooleanThe IMAP Access Enabled Value can be set to True/ False to enable or disable the incoming for the account. 

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String  updateIMAPStatus

 To change the IMAP status for the particular account. 

* - Mandatory parameters 

Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
   "zuid": "1111111",
   "mode": "updateIMAPStatus",
   "imapAccessEnabled": "true"
}			

Sample Request (Using User Authentication)


				{
   "mode": "updateIMAPStatus",
   "popAccessEnabled": "true"
}