webhook - infinite loop #13136
-
I am using webhook to update custom data fields whenever a user changes some data in a device. Webhook is installed directly on the netbox server. What is the best way to avoid infinite loops? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
One solution is to use a specific username (its API token) in the webhook handler, and then compare the username field in the incoming webhook and just ignore the call if the username matches the webhook handler username. |
Beta Was this translation helpful? Give feedback.
In the default webhook request body there is the
username
field: https://docs.netbox.dev/en/stable/integrations/webhooks/#default-request-body