PUT - Apply tag for an email
Purpose
This API is used to apply a tag 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 | - | The unique identifier for the respective email |
mode* | String | applyLabel | Provide the mode as applyLabel to apply a tag to the mentioned messages |
labelid* | Long Int | - | The unique identifier given for the tag that you want to add |
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":"applyLabel",
"labelId":[31321431],
"messageId" : [11000000004001]
}