update-email
Update email state: mark read/unread, flag with due dates, complete or remove flags. Supports batch flagging.
Instructions
Update message state without modifying content (idempotent — safe to retry). action=mark-read/mark-unread toggles the isRead flag on a single message by id. action=flag sets a follow-up flag with optional dueDateTime/startDateTime (ISO 8601). action=unflag clears the flag. action=complete marks the flag as done. Flag/unflag/complete accept either id (single) or ids (batch array) — batch operations use Graph $batch for efficiency. Returns status confirmation per message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform (required) | |
| id | No | Single message ID (required for mark-read/mark-unread, or use instead of ids for flag actions) | |
| ids | No | Array of message IDs for batch flag/unflag/complete operations | |
| dueDateTime | No | Due date/time for follow-up, ISO 8601 (action=flag) | |
| startDateTime | No | Start date/time for follow-up, ISO 8601 (action=flag) |