TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

PUT api/2.0/mail/conversations/restore This function requires authentication

Description

Restores the conversations with the IDs specified in the request to their original folders.

Parameters
Name Description Type Example
ids
sent in body
List of conversation IDs System.Collections.Generic.List{System.Int32}
learnSpamTrainer
sent in body
Specifies whether to send messages to the spam training or not
optional
Bool value true
Example
PUT api/2.0/mail/conversations/restore
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "ids": [
    1234
  ],
  "learnSpamTrainer": true
}
Returns

List of restored conversation IDs