PUT - Mark an email as not spam
Purpose
This API is used to mark a particular email or a group of emails as not spam
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 | moveNotSpam | Provide the mode as moveToSpam to mark an email as not spam |
| 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":"markNotSpam",
"messageId" : [11000000004001]
}