From 1242ad68f74b14e3ce5b8a30d3bc7d07ac5c98e5 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 8 Aug 2025 22:05:26 -0400 Subject: [PATCH] Closes #20029: Add object_type to webhook data (#20049) --- netbox/extras/webhooks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/extras/webhooks.py b/netbox/extras/webhooks.py index 1620d950e..a68f219bd 100644 --- a/netbox/extras/webhooks.py +++ b/netbox/extras/webhooks.py @@ -51,6 +51,7 @@ def send_webhook(event_rule, object_type, event_type, data, timestamp, username, context = { 'event': WEBHOOK_EVENT_TYPES.get(event_type, event_type), 'timestamp': timestamp, + 'object_type': '.'.join(object_type.natural_key()), 'model': object_type.model, 'username': username, 'request_id': request.id if request else None,