action microsoft_create_sharing_link { label: "Create sharing link" description: "Create a sharing link for a OneDrive file or folder." provider: microsoft method: POST path: "/v1.0/me/drive/items/{item_id}/createLink" scopes: ["Files.ReadWrite"] input: @json { { "type": "object", "required": ["item_id", "type"], "additionalProperties": false, "properties": { "item_id": { "type": "string", "description": "Drive item id." }, "type": { "type": "string", "enum": ["view", "edit", "embed"], "description": "Link permission level." }, "scope": { "type": "string", "enum": ["anonymous", "organization"], "description": "Who can use the link." } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "link": { "type": "object" } } } } }