I am working with graph api, using which I want to share a drive item via link with password and expiration date set on it. The documentation said to use this api: '''https://graph.microsoft.com/v1.0/drives/{driveId}/items/{itemId}/createLink'''. The body for the request is '''{
"type" : "view",
"scope": "anonymous",
"password": "XXXXXXX"
}'''. But when I make a post request, I am getting an error '''{
"error": {
"code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
"message": "The parameter password does not exist in method createLink.",
"innerError": {
"date": "XXXXXX",
"request-id": "XXXXXX",
"client-request-id": "XXXXXX"
}
}
}'''.
The drive that I am using is a business account user drive(user@company.com). Any help in this regard to resolve the issue is highly appreciated.