action microsoft_update_message { label: "Update message" description: "Update message properties such as read state, categories, flag, or importance. Subject and body can only be changed on drafts." provider: microsoft method: PATCH path: "/v1.0/me/messages/{message_id}" scopes: ["Mail.ReadWrite"] input: @json { { "type": "object", "required": ["message_id"], "additionalProperties": false, "properties": { "message_id": { "type": "string", "description": "Id of the message to update." }, "isRead": { "type": "boolean" }, "categories": { "type": "array", "items": { "type": "string" } }, "flag": { "type": "object", "description": "Follow-up flag, e.g. {\"flagStatus\": \"flagged\"}." }, "importance": { "type": "string", "enum": ["low", "normal", "high"] }, "subject": { "type": "string", "description": "Drafts only." }, "body": { "type": "object", "description": "Drafts only.", "properties": { "contentType": { "type": "string", "enum": ["text", "html"] }, "content": { "type": "string" } } } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "subject": { "type": "string" }, "isRead": { "type": "boolean" }, "categories": { "type": "array", "items": { "type": "string" } } } } } }