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.
...