Get Started
Portal api methods
Help

PUT api/2.0/mail/messages/move This function requires authentication

Description

Moves the messages to the specified folder

Parameters
Name Description Type Example
ids
sent in body
List of mesasges ids. System.Collections.Generic.List`1[System.Int32]
folder
sent in body
Folder ID - integer. 1 - inbox, 2 - sent, 3 - drafts, 4 - trash, 5 - spam. number 1234
userFolderId
sent in body
User Folder Id
optional
System.UInt32
Example
PUT api/2.0/mail/messages/move
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "ids": [
    1234
  ],
  "folder": 1234,
  "userFolderId": null
}
Returns

List of moved messages ids.