drives.driveItem
Invoke action createLink
Create a link to share a driveItem driveItem. The createLink action creates a new sharing link if the specified link type doesn't already exist for the calling application. If a sharing link of the specified type already exists for the app, the existing sharing link is returned. DriveItem resources inherit sharing permissions from their ancestors.
post/drives/{driveId}/items/{driveItemId}/microsoft.graph.createLink
Request
- Base URLhttps://graph.microsoft.com/v1.0
- AuthOAuth 2Authorization codehttps://login.microsoftonline.com/common/oauth2/v2.0/authorizeToken URLhttps://login.microsoftonline.com/common/oauth2/v2.0/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
driveIdstring required
The unique identifier of drive
driveItemIdstring required
The unique identifier of driveItem
Request body
Response
Success
Changes
No operation changes recorded.