using webhooks and rest api

using webhooks and rest api

I have an app that gets updated via a webhook. That same apps can make edits to the same data and those edits are pushed to Zoho via a rest api calls. 

I just conducted a test where I make a rest api update and that resulted in a webhook invocation.

How do I prevent an infinite loop?