Move a message
POST/api/accounts/:accountId/folders/:folder/messages/:uid/move
Moves one message to another folder of the same account with IMAP MOVE and returns { "success": true }. The message keeps its flags but gets a new UID in the destination, which is not returned, so reload the destination folder to find it.
A move that the IMAP server refuses, for example because destination does not exist, returns 424.
Request
Responses
- 200
- 400
- 401
- 404
- 424
Moved.
Request failed.
The session has no mailbox access token. code is mail_token_missing; sign in again.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.