update_message
Modify email message state in one call—mark read/unread, flag/unflag, restore from trash, or move to/from a folder. Pass only fields to change.
Instructions
Update a message's state: mark read/unread, restore from trash, flag/unflag, move to (or out of) a folder. Any combination in one call - pass only the fields you want to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id, from list_messages or get_thread | |
| read | No | ||
| flagged | No | ||
| restore | No | Pass true to restore a message out of Trash | |
| folderId | No | A folder id to file the message into, or null to remove it from its current folder. Must belong to the same mailbox as the message. |