partially rolled-back the last change to add_or_update_webhooks.py