action microsoft_create_draft { label: "Create draft" description: "Create a draft message in the signed-in user's mailbox." provider: microsoft method: POST path: "/v1.0/me/messages" scopes: ["Mail.ReadWrite"] input: @json { { "type": "object", "required": ["subject"], "additionalProperties": false, "properties": { "subject": { "type": "string" }, "body": { "type": "object", "properties": { "contentType": { "type": "string", "enum": ["text", "html"] }, "content": { "type": "string" } } }, "toRecipients": { "type": "array", "items": { "type": "object", "properties": { "emailAddress": { "type": "object", "properties": { "address": { "type": "string" }, "name": { "type": "string" } } } } } }, "ccRecipients": { "type": "array", "items": { "type": "object" } }, "bccRecipients": { "type": "array", "items": { "type": "object" } }, "importance": { "type": "string", "enum": ["low", "normal", "high"] } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "subject": { "type": "string" }, "isDraft": { "type": "boolean" }, "webLink": { "type": "string" } } } } }