Accessing the shared documents folder within a private group of a sharepoint site using Graph API
I am in the process of trying to use Graph API to upload a test file to a Sharepoint site. I am struggling to correctly point Graph API to a point within the Shared Documents folder on a private group.
Suppose the host is devsite.sharepoint.com and the private group is "Development". In the shared documents there is a folder called "TestFolder".
Private Group with folder "TestFolder"
By trial and error on graph explorer, I've successfully navigated to the private group using.
https://graph.microsoft.com/v1.0/sites/devsite.sharepoint.com:/sites/Development
I've unsuccessfully tried to access the shared documents folder using the following
https://graph.microsoft.com/v1.0/sites/devsite.sharepoint.com:/sites/Development/drive/root
https://graph.microsoft.com/v1.0/sites/devsite.sharepoint.com:/sites/Development/Shared%20Documents/TestFolder
all of which return
Code: BadRequestMessage: Url specified is invalid
or The provided path does not exist, or does not represent a site
The graph API website documentation, unfortunately, doesn't yield anything of value, any help on this from the crowd would be appreciated!
from Recent Questions - Stack Overflow https://ift.tt/3ynN6Af
https://ift.tt/eA8V8J
Comments
Post a Comment