Skip to main content

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​

Updated.