Set message flags
PUT/api/accounts/:accountId/folders/:folder/messages/:uid/flags
Changes the IMAP flags of one message, for example to mark it read or unread (\Seen) or starred (\Flagged), and returns { "success": true }.
action decides how flags is applied: add (the default) adds them, remove removes them, and set replaces all of the message's flags with flags. Any other action changes nothing but still returns success. Flag names are passed to the IMAP server as given, so custom keywords work too.
Request
Responses
- 200
- 401
- 404
- 424
Updated.
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.