Folder Details
The Folder APIs help you to get and update information about the Folder details of a particular user account.
While using Folder related API, use the OAuth Scope ZohoMail.folders.
Method Name | URL | Method Type | OAuth Scope | Purpose |
Create a new folder | /api/accounts/{accountId}/folders | POST | Create a new folder with the specified name and details, in the given path. | |
Get all folders | /api/accounts/{accountId}/folders | GET | ZohoMail.folders | To get the details of all the folders in a particular account along with the Folder Id of each folder. |
Get specific folder | /api/accounts/{accountId}/folders/{folderId} | GET | To get the details of a particular folder, based on the Folder Id provided. | |
Rename folder | /api/accounts/{accountId}/folders/{folderId} | PUT | To rename a particular folder with the specified name. | |
Move folder | /api/accounts/{accountId}/folders/{folderId} | PUT | To move a folder to a different position in the folder tree. | |
Enable IMAP view for a folder | /api/accounts/{accountId}/folders/{folderId} | PUT | To enable IMAP view for the folder, to make it accessible from the IMAP Clients. | |
Disable IMAP view for a folder | /api/accounts/{accountId}/folders/{folderId} | PUT | To disable IMAP View for the the folder, to make it notaccessible from the IMAP Clients | |
Mark all emails in a folder as read | /api/accounts/{accountId}/folders/{folderId} | PUT | To mark all emails in the folder as Read. | |
Empty folder | /api/accounts/{accountId}/folders/{folderId} | PUT | To delete all emails in the folder. | |
Delete folder | /api/accounts/{accountId}/folders/{folderId} | DELETE | To delete the folder along with the emails and sub-folders |