Netbox API ignores PATCH request to remove tag from device #8857

Closed
opened 2025-12-29 20:42:14 +01:00 by adam · 2 comments
Owner

Originally created by @BackblazeJeremy on GitHub (Nov 20, 2023).

NetBox version

v3.6.3

Python version

3.11

Steps to Reproduce

  1. Create device with tag webhook-test.
  2. Edit attached Python script to set valid API token and device ID.
  3. Run Python script and review output.
    remove_tag.py.txt

The API key used to reproduce this error in our instance was read/write and was attached to an account that is in a group with every permission assigned.

Expected Behavior

  1. The request should return JSON for the device with the amended tag list
  2. Netbox should show the device without the tag that we requested to remove
  3. Netbox should show this change in the changelog

Observed Behavior

  1. Observe that the request in the script returned with code 200 an unchanged device object.
  2. In Netbox UI, see that tag is still present and that the changelog has an entry with no changes.
    remove_tag.log
Originally created by @BackblazeJeremy on GitHub (Nov 20, 2023). ### NetBox version v3.6.3 ### Python version 3.11 ### Steps to Reproduce 1. Create device with tag `webhook-test`. 2. Edit attached Python script to set valid API token and device ID. 3. Run Python script and review output. [remove_tag.py.txt](https://github.com/netbox-community/netbox/files/13419195/remove_tag.py.txt) The API key used to reproduce this error in our instance was read/write and was attached to an account that is in a group with every permission assigned. ### Expected Behavior 1. The request should return JSON for the device with the amended tag list 2. Netbox should show the device without the tag that we requested to remove 3. Netbox should show this change in the changelog ### Observed Behavior 1. Observe that the request in the script returned with code `200` an unchanged device object. 2. In Netbox UI, see that tag is still present and that the changelog has an entry with no changes. [remove_tag.log](https://github.com/netbox-community/netbox/files/13419196/remove_tag.log)
adam added the type: bugstatus: revisions needed labels 2025-12-29 20:42:14 +01:00
adam closed this issue 2025-12-29 20:42:15 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 21, 2023):

We are not able to evaluate custom scripts as part of the bug reporting process. Please revise your post above to include complete reproduction steps, and distill your code to the raw API request you believe demonstrates the reported behavior.

@jeremystretch commented on GitHub (Nov 21, 2023): We are not able to evaluate custom scripts as part of the bug reporting process. Please revise your post above to include complete reproduction steps, and distill your code to the raw API request you believe demonstrates the reported behavior.
Author
Owner

@jeremystretch commented on GitHub (Nov 28, 2023):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@jeremystretch commented on GitHub (Nov 28, 2023): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8857