Specifying an empty list does not clear assigned tags when updating object via REST API #4087

Closed
opened 2025-12-29 18:33:02 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 9, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.3

Steps to Reproduce

  1. Create an object with one or more tags assigned
  2. Attempt to remove the assigned tags by making a PATCH API request setting "tags": []

Expected Behavior

All assigned tags should be removed from the object.

Observed Behavior

No change is made to the assigned tags.

Originally created by @jeremystretch on GitHub (Sep 9, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.9.3 ### Steps to Reproduce 1. Create an object with one or more tags assigned 2. Attempt to remove the assigned tags by making a `PATCH` API request setting `"tags": []` ### Expected Behavior All assigned tags should be removed from the object. ### Observed Behavior No change is made to the assigned tags.
adam added the type: bugstatus: accepted labels 2025-12-29 18:33:02 +01:00
adam closed this issue 2025-12-29 18:33:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4087