NOTE: This article is related to setting Graph API Permissions
Add the Sites.Selected permissions under App registration / API permissions and ensure it is granted.
...
Get site ID
For the upcoming step, we need the site id. The easiest is to append ‘_api/site/id’ to the site url. E.g.
...
https://graph.microsoft.com/v1.0/sites/<yoursite>.sharepoint.com:/sites/<subsite>
Allow Application to access the Site
We need to make another API call to allow our voyager app to access the site of the id we get in the previous step. In order to do so we can use Microsoft graph explorer and do POST request to the permission endpoint with the siteId:
...