[Graph / one drive API] Create Link endpoind problem

Elyes Hachem 96 Reputation points

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 :
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 Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
304 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,698 questions
No comments
{count} votes

Accepted answer
  1. Elyes Hachem 96 Reputation points


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

    Thank you

    No comments

0 additional answers

Sort by: Most helpful