Can't remove installed_device in device-bays with API #4347

Closed
opened 2025-12-29 18:35:01 +01:00 by adam · 1 comment
Owner

Originally created by @Snoo-py on GitHub (Dec 11, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.6.10

Steps to Reproduce

  1. Make a PATCH request API endpoint "dcim/device-bays" with following data {"installed_device": None} on a device-bay with a installed_device
  2. No error is raised and data returned by the PATCH request still contains the installed_device

Expected Behavior

Installed_device is removed

Observed Behavior

Installed_device is still present.

Originally created by @Snoo-py on GitHub (Dec 11, 2020). ### Environment * Python version: 3.6.8 * NetBox version: 2.6.10 ### Steps to Reproduce 1. Make a PATCH request API endpoint "dcim/device-bays" with following data {"installed_device": None} on a device-bay with a installed_device 2. No error is raised and data returned by the PATCH request still contains the installed_device ### Expected Behavior Installed_device is removed ### Observed Behavior Installed_device is still present.
adam closed this issue 2025-12-29 18:35:01 +01:00
Author
Owner

@Snoo-py commented on GitHub (Dec 11, 2020):

My bad, I have a 301 redirection...

@Snoo-py commented on GitHub (Dec 11, 2020): My bad, I have a 301 redirection...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4347