Move a Message

This method is used to move a particular message into a specific folder. Messages can only be moved within their respective type (ie: Inbox or Outbox), but they can be placed in any subfolder with the same type. A session key must be submitted via the X-Session-Key header. The message ID of the message you'd like to move must be passed in the URL of this method. The response body will be empty. A successful transaction will receive a 200 status code.

Path Params
string
required

Unique message identifier

Body Params

The move message request data

int32
required

The destination folder's unique identifier

Headers
string
Responses

400

The MoveMessageRequestData model is required in the request body. || The DestinationFolderId field is required.

401

The X-Session-Key header is missing. || Bad session key. || Session key expired. || Could not parse the message ID into an integer. || You do not have access to message with id [MessageId]. || FolderId [FolderId] not found. || Could not move the message into the destination folder. || Message could not be moved to the recovery folder. || Message could not be moved to the trash folder. || The message has been deleted from the Inbox and is no longer available. || This message has been deleted from Track Sent and is no longer available.

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json