Post

1 follower Follow
0
Avatar

Raw syntax of 'silent' parameter?

Hi,

I want to use the silent parameter as described in the item update API to stop my webhooks becoming an endless loop.

The docs don't give a specific syntax and I have tried every combination I could think of, like ?silent=true, ?silent=True, ?silent=1. Nothing seems to do the trick.

Best,

Stefan

Stefan Ukena

Please sign in to leave a comment.

2 comments

0
Avatar

The correct syntax is silent=true. An example for item update would be:

PUT /item/1234?silent=true

However, setting silent to true only prevents stream updates and notifications. The webhook will still be called. So if you have a webhook that subscribes to item.update, and also updates an item, you will have to keep track of that and make sure to ignore the call to your webhook that comes as a result of your code updating the item.

Casper Fabricius 0 votes
Comment actions Permalink
0
Avatar

Thanks, Casper! That explains why it didn't seem to work for me. :) In fact, it does make sense now that you explain how it works. Especially if I consider that my app might not be the only one being notified, it would not make sense to stop other hooks to be triggered.

Stefan Ukena 0 votes
Comment actions Permalink