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)
Parameter | Data Type | Allowed Values | Description |
messageId* | JSON | - | Single or Multiple Message Ids which need to be moved. |
mode* | String | moveMessage | Provide the mode as moveMessage to move the emails to a different folder. |
folderId | Long 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 |
isArchive | Boolean | true, false | If 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]
}