folders

Name Resource Description
Get folders GET api/2.0/mail/folders Returns the list of default folders
Get folders GET api/2.0/mail/userfolders Returns the list of user folders
Get folder by mail id GET api/2.0/mail/userfolders/bymail Returns the user folders by mail id
Create folder POST api/2.0/mail/userfolders Create user folder
Update folder PUT api/2.0/mail/userfolders/{id} Update user folder
Delete folder DELETE api/2.0/mail/userfolders/{id} Delete user folder
Remove all messages from folder DELETE api/2.0/mail/folders/{folderid}/messages Removes all the messages from the folder. Trash or Spam.