0
votes

trying to return all DriveItems that on a site. I do the following to get the drive which returns a result

GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com:/sites/mysite:/drive

but the following returns a "specified url is invalid"

https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com:/sites/mysite:/drive/items

1

1 Answers

0
votes

You can get the root folders this way.

GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com/sites/mysite/drive/root/children