After testing and getting the same error as you.
I noticed that the endpoint was in beta version. Since APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. Therefore, errors may be reported during testing due to endpoint changes.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.