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)

ParameterData TypeAllowed ValuesDescription
messageId*JSONSingle Message Id, or a set of message IdsThe unique identifier for the respective email
mode* String​ setFlagProvide the mode as setFlag to add flag to the mentioned messages
flagid*Stringinfo, important, followupThe flag that you want to set for the email
folderIdLong Int-The unique identifier of the respective folder
isArchiveBooleantrue, falseIf 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]
}