I am using the Microsoft Java SDK for Graph API.
I want to access a site via its server relative path like
GET https://graph.microsoft.com/v1.0/sites/company.sharepoint.com:/sites/mysite:/
I can only find in the SDK something for find by ID apposed to relative path? I dont have the ID
The URL of my site is like this https://mycompanydomain.sharepoint.com/sites/my_site_name
The solution was actually to do sites.byId("company.sharepoint.com:/sites/mysite:").buildRequest().get();
1.4m articles
1.4m replys
5 comments
57.0k users