[Graph / one drive API] Create Link endpoind problem

Elyes Hachem 96 Reputation points
2021-11-05T13:36:21.177+00:00

Hello community,

I am developing an application that upload files into SharePoint and OneDrive using the Graph API.
99% of the endpoints I am using are in the V1 version of the API.

I only need 1 endpoint that is still in beta.
The Create Link endpoint :
POST /groups/{groupId}/drive/items/{itemId}/createLink ==> For SharePoint
POST /me/drive/items/{itemId}/createLink ==> For OneDrive

I have 2 questions :
1 - When does the V1 endpoint will be similar to the preview endpoint ?
The preview endpoint is able to share file to external users and even block blockdownload
2 - When will you fix it. Few weeks ago the preview endpoint was working properly but now when you share a sharepoint file to external identities, you receive this error :
146875-image.png
When you share a file on onedrive you don't have an error but you cannot share blocking the download.

I would appreciate if someone from Microsoft could help me.

Thank you for your time and help.

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Elyes Hachem 96 Reputation points
    2021-11-07T12:05:40.323+00:00

    Hello,

    You can close this issue.
    The error was from my side.
    The JSON payload I have sent was containing black slashes.

    Thank you

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.