ChsharpNewbie
ChsharpNewbie

Reputation: 1102

Problem with finding a subfolder in OneDrive

I would like to use the Microsoft APi point

/drives/{id}/root/subfolder

when I address it with Postman(https://graph.microsoft.com/v1.0/drives/{MyUserId}/root/NameOfMyFolder) I get a 404 and an Item not found message.

BTW: The folder NameOfMyFolder does exists ;-)

Link: https://learn.microsoft.com/en-us/graph/webhooks

What am I doing wrong ?

Screenshot

Upvotes: 0

Views: 163

Answers (1)

Hong Ooi
Hong Ooi

Reputation: 57686

The syntax is

GET .../{driveID}/root:/foldername

Note the : in front of root. Reference page on Microsoft Docs:

https://learn.microsoft.com/en-us/graph/api/driveitem-get?view=graph-rest-1.0&tabs=http

Upvotes: 1

Related Questions