PUT - Move an email to a different folder

 Purpose

This API is used to move a particular email or a group of emails from the existing folder to a new folder. 

 Request URL 

https://mail.zoho.com/api/accounts/<accountId>/updatemessage

  Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
messageId*JSON-Single or Multiple Message Ids which need to be moved.
mode* StringmoveMessageProvide the mode as moveMessage to move the emails to a different folder.
folderIdLong Int-The unique identifier of the respective folder
destfolderId*Long Int-The unique identifer of the folder to which the email(s) need to be moved
isArchiveBooleantrue, falseIf the relevant email is archived or not

* - Mandatory parameters

 Response Codes

Please refer Response Codes.

Sample Request Body

Copied{  
 "mode":"moveMessage",
 "destfolderId":134143131,
 "messageId" : [11000000004001]
}