share_item
Create a sharing link for a file or folder, controlling access type, permissions, expiration, and optional password protection.
Instructions
Create a sharing link for a file or folder
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | Item ID to share | |
| itemPath | No | Alternative: item path to share | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| type | No | Type of sharing link | view |
| scope | No | Who can access the link | organization |
| expirationDateTime | No | Link expiration (ISO 8601 format, optional) | |
| password | No | Password protection (optional) |