Share via

When retrieving contents from folder using folder id it throws 404

Karthik PR 0 Reputation points
2024-02-16T10:51:48.9633333+00:00

I am trying to get the contents of the folder from onedrive . I am using the correct folder id that is got from the post call but still i receive 404 error https://graph.microsoft.com/v1.0/728e7840-2ac6-49bb-97ae-7c34ed560909/drive/items/01HDONSX62URAOVEMVZNCJRRNOWQ5A6X4H/children

Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 3,640 Reputation points Microsoft External Staff
    2024-02-16T20:00:20.91+00:00

    Hi Karthik, The endpoint you are using is not correct. Required Endpoint: GET https://graph.microsoft.com/v1.0/users/{idOrUserPrincipalName}/drive You have missed users in the endpoint. If the user-id, folder-id are correct, please change the endpoint by adding users and it will work as expected. Kindly refer this Document. Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    Was this answer helpful?

    0 comments No comments

Your answer

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