pynetbox
pynetbox copied to clipboard
extras.webhooks.create() returns non_field_errors
I am using extras.webhook to create a new webhook with different name, content_type, but the same payload_url, type_create, type_update, type_delete value, but got the error below:
modifying failed due to: {"non_field_errors":["The fields payload_url, type_create, type_update, type_delete must make a unique set."]}
I think it's a bug, it makes sense to use a webhook with the same payload_url, type_create, type_update, and type_delete value. Please take a look. Thanks.
Are you able to do the same in NetBox GUI? I'm asking because the error text is not from pynetbox
, it is coming from NetBox API.
Hi @markkuleinio , yes, I was able to set it via Netbox GUI, but if I set it via pynetbox, I got the error above.
Can you show the actual call you are making with pynetbox
?
Close for now since no need.