Restore conversations
PUT /api/2.0/mail/conversations/restore
Restores the conversations with the IDs specified in the request to their original folders.
Request body
ids
type: integer[]
List of conversation IDs
learnSpamTrainer
type: boolean
Specifies whether to send messages to the spam training or not
Example: true
Request example
{
"ids": [
0
],
"learnSpamTrainer": true
}
Returns
List of restored conversation IDs. A request that is not authenticated returns 401.
Response example
[
0
]