
Hi@鄧景仁(Scott Teng),
Both SharePoint REST API and Microsoft Graph API provide the capability to track changes to files and folders in SharePoint. However, Microsoft Graph API is the recommended API for building apps that integrate with Microsoft 365 services, including SharePoint. It provides a unified endpoint for accessing data and insights across multiple Microsoft 365 services, including SharePoint, OneDrive, Outlook, and more.
Additionally, Microsoft is investing heavily in Graph API development and adding new features to it regularly, whereas the SharePoint REST API may receive limited new features or updates.
So, if you are developing a new application or solution that needs to integrate with SharePoint, it is recommended to use Microsoft Graph API over SharePoint REST
Judging from your error message, you need to give the registered application the required permissions for the api
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Cheng Feng