PUT - Set flag for email
Purpose
This API is used to set one among the three flags (info, important, follow-up) for a particular email or a group of emails.
Request URL
https://mail.zoho.com/api/accounts/<accountId>/updatemessage
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
messageId* | JSON | Single Message Id, or a set of message Ids | The unique identifier for the respective email |
mode* | String | setFlag | Provide the mode as setFlag to add flag to the mentioned messages |
flagid* | String | info, important, followup | The flag that you want to set for the email |
folderId | Long Int | - | The unique identifier of the respective folder |
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":"setFlag",
"flagid":"info",
"messageId" : [110000000076001]
}