sharepoint - Access files of Document Library site through Microsoft Graph API -


i wondering if 2 following queries same or supposed same:

https://graph.microsoft.com/beta/sharepoint/sites/{spsite-id},{spweb-id}/drives , https://graph.microsoft.com/beta/sharepoint/sites:/mypath:/drives

i access document library item in sharepoint site through relative path.

please mind both endpoints below same getting doc libraries or drive in site according current beta microsoft graph documentation. latter becomes handy when dont know site id yet relative site url.

now document library item

  1. get document library id list of drives

    https://graph.microsoft.com/beta/sites/[site-id]/drives

  2. get item id list of items

    https://graph.microsoft.com/beta/sites/[site-id]/drives/[drive-id]/items

  3. final api call

    https://graph.microsoft.com/beta/sites/[site-id]/drives/[drive-id]/items/[item-id]

you try experimenting graph api here


Comments