PUT - Disable access to folder via IMAP 

 Purpose

The API helps to disable the folder from being viewable and makes the folder not accessible via IMAP. 

 Request URL 

https://mail.zoho.com/api/accounts/<accountID>/folders/<folderID>

 Request Parameters

ParameterData TypeDescription
accountID*LongaccountID - The unique Zoho Account number associated with the particular account.
folderID*LongfolderID - The Folder ID of the specific folder, for which IMAP access needs to be disabled.

* - Mandatory parameters

  Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String

 removeViewableInIMAP

 Provide the mode as removeViewableInIMAP to disable access via Folder for that folder.

* - Mandatory parameters

 Response Codes

Please refer Response Codes.

Sample Request


				{
    "mode":"removeViewableInIMAP"
}