Microsoft Graph - 更新事件API但触发订阅/ webhook

I'm using Microsoft Graph and Outlook, and I have subscriptions/webhook setup for created, updated, and deleted. When I create, update, or delete an event from my own calendar and then call the Microsoft Graph to do the same for my outlook calendar, it sends a subscription to my webhook.

For example, when I update an event from my site using/calling:

PATCH /me/events/{id}

here is what it is doing:

  1. Updates the event on my site (Good)
  2. Updates the event on Microsoft Outlook (Good)
  3. Sends a updated subscription/webhook to my site and then it updates my the event on my site again (Bad, I do not want this to happen)

How can I make #3 not happen if I'm updating the event on my site originally/in the first place?


UPDATE:

I found the answer here: https://stackoverflow.com/a/40876329/9743109 - You have to use changeKey