OneDrive Shares API behavior no longer reflects documentation

Sasha 0 Reputation points
2024-12-28T21:52:22.8233333+00:00

Hi, it seems a lot of other people have had this issue too. I haven't seen any official responses that have actually given a proper solution to this issue.

For a long time, there has been a shares API that allowed for direct download link generation given a share link to an item. This API has worked the same way for a long time. Recently, there has been some sort of breaking change that makes the API no longer work the way it used to, and the documentation for it has not been updated properly to reflect how to use the API now.

Regardless of if you use the old and new share link formats, the API does not work.

Trying https://api.onedrive.com/v1.0/shares/ with the shareId always returns 400 with the message bad argument now, when it worked in the past. The documentation still says this is the correct way to do it.

Trying it with the encoded (new) URL returns a 401 with a message of "Exception of type 'Microsoft.Vroom.Exceptions.UnauthenticatedVroomException' was thrown.".

Trying it with the encoded (old) URL returns the same thing as the new URL.

This makes no sense, as it's a public share so anyone with the link should be able to access it. I've spent hours scouring these question threads and looking for anything new in the API and seemingly nothing points to an answer.

Please either update the documentation or revert the API behaviour. If this isn't fixed soon, I'll be forced to migrate my files to another service.

Hopefully this is all just a miscommunication or misunderstanding and I'm doing something wrong.

Thanks in advance.

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,230 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,309 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 12,500 Reputation points Microsoft Vendor
    2024-12-30T02:04:06.6533333+00:00

    Hi @Sasha

    Since your issue involves development, I suggest you post a new thread in Microsoft Tech Community --- OneDrive Developer.

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

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.