The relative path that you are trying to use does not exist. Please refer to available resources via Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer
Getting 404 when using /sites/{site-id}/drive/items/{item-id}/children
Michael Chen
0
Reputation points
I'm trying to use /sites/{site-id}/drive/items/{item-id}/children (mentioned here) to retrieve items from a folder in a Sharepoint site. However, I keep on running into a 404. I am getting the site and item ids by doing the following:
- https://graph.microsoft.com/v1.0/sites?search=* to retrieve all the sites. I'm then picking the one I want
- https://graph.microsoft.com/v1.0/sites/{site_id}/drives using the site_id I get from 1.
- https://graph.microsoft.com/v1.0/drives/{site_drive_id}/root/children using the site_drive id from 2 to list all the folders in the root of the correct site drive. I then find the folder I want from this API call.
However, when I use the folder id from 3, in combo with the site id i get from 1, I hit the 404. Any ideas?