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.
https://graph.microsoft.com/beta/sites/[domain.sharepoint.com]:/[relative-url]:/drives
https://graph.microsoft.com/beta/sites/[site-id]/drives
(e.g. site id: "cie493742.sharepoint.com,4af352a7-a53b-43d9-b0a3-da372b392ea0,52c490f3-3354-40b9-a3c9-fefb08cb5c88" )
now document library item
get document library id list of drives
get item id list of items
https://graph.microsoft.com/beta/sites/[site-id]/drives/[drive-id]/items
final api call
https://graph.microsoft.com/beta/sites/[site-id]/drives/[drive-id]/items/[item-id]
you try experimenting graph api here
Comments
Post a Comment