Hello Marco de Jong,
Thank you for contacting for Microsoft Support!
It sounds like you're encountering a permissions issue. Here are a few things you might want to check:
- Permissions: Ensure that the permissions granted to your application include
Bookings.ReadWrite.All
,Bookings.Manage.All
for updating booking businesses. Sometimes, even if permissions are set, they might not be correctly applied or consented to. - Token Type: Verify that the access token you're using matches the permissions granted. If you're using delegated permissions, ensure the token is acquired through a user context. For application permissions, ensure you're using the client credentials flow.
- Admin Consent: Make sure that the permissions have been granted admin consent. Without admin consent, some permissions might not be fully effective.
If you've checked all these and the issue persists, it might be helpful to decode your access token using a tool like jwt.ms to ensure it contains the correct permissions and claims.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.