Submitting a PUT or PATCH request on virtualization/interfaces via API always responds with status 200 without any changes made to the database. #11337

Closed
opened 2025-12-29 21:43:50 +01:00 by adam · 1 comment
Owner

Originally created by @LLFT on GitHub (Jul 1, 2025).

Deployment Type

NetBox Cloud

NetBox Version

V4.3.3

Python Version

3.11

Steps to Reproduce

On the API or via Postman, each submitted PATCH or PUT request on "api/virtualization/interfaces" ends in status 200 regardless of the values ​​entered in the Body.

curl --location --request PUT 'https://netbox-local.tld/api/virtualization/interfaces/15' \
--header 'Authorization: TOKEN [TOKENValue]' \
--header 'Content-Type: application/json' \
--header 'Cookie: csrftoken=qZTxajisxcaBG3h9Odzzdz41rwKWNMAXOR99Z' \
--data '{    
  "id": 15,
  "name": "HelloWorld"
}'

However, no changes are validated in the database.

Expected Behavior

Expected behavior: The interface with ID 15 is named HelloWorld

Observed Behavior

Nothing on Database
Response :

{
    "id": 15,
    "url": "https://netbox-local.tld/api/virtualization/interfaces/15/",
    "display_url": "https://netbox-local.tld/virtualization/interfaces/15/",
    "display": "0DB71EC0-26D0-4B0A-ACA1-211A9FCDD40F",
    "virtual_machine": {
        "id": 14,
        "url": "https://netbox-local.tld/api/virtualization/virtual-machines/14/",
        "display": "vm-serv-sso-ha1",
        "name": "vm-serv-sso-ha1",
        "description": ""
    },
    "name": "0DB71EC0-26D0-4B0A-ACA1-211A9FCDD40F",
    "enabled": true,
    "parent": null,
    "bridge": null,
    "mtu": null,
    "mac_address": null,
    "primary_mac_address": null,
    "mac_addresses": [
        {
            "id": 14,
            "url": "https://netbox-local.tld/api/dcim/mac-addresses/14/",
            "display": "00:15:5D:BB:E3:23",
            "mac_address": "00:15:5D:BB:E3:23",
            "description": ""
        }
    ],
    "description": "",
    "mode": null,
    "untagged_vlan": null,
    "tagged_vlans": [],
    "qinq_svlan": null,
    "vlan_translation_policy": null,
    "vrf": null,
    "l2vpn_termination": null,
    "tags": [],
    "custom_fields": {},
    "created": "2025-07-01T11:29:21.132131+02:00",
    "last_updated": "2025-07-01T11:31:47.958673+02:00",
    "count_ipaddresses": 1,
    "count_fhrp_groups": 0
}
Originally created by @LLFT on GitHub (Jul 1, 2025). ### Deployment Type NetBox Cloud ### NetBox Version V4.3.3 ### Python Version 3.11 ### Steps to Reproduce On the API or via Postman, each submitted PATCH or PUT request on "api/virtualization/interfaces" ends in status 200 regardless of the values ​​entered in the Body. ```SHELL curl --location --request PUT 'https://netbox-local.tld/api/virtualization/interfaces/15' \ --header 'Authorization: TOKEN [TOKENValue]' \ --header 'Content-Type: application/json' \ --header 'Cookie: csrftoken=qZTxajisxcaBG3h9Odzzdz41rwKWNMAXOR99Z' \ --data '{ "id": 15, "name": "HelloWorld" }' ``` However, no changes are validated in the database. ### Expected Behavior Expected behavior: The interface with ID 15 is named HelloWorld ### Observed Behavior Nothing on Database Response : ```JSON { "id": 15, "url": "https://netbox-local.tld/api/virtualization/interfaces/15/", "display_url": "https://netbox-local.tld/virtualization/interfaces/15/", "display": "0DB71EC0-26D0-4B0A-ACA1-211A9FCDD40F", "virtual_machine": { "id": 14, "url": "https://netbox-local.tld/api/virtualization/virtual-machines/14/", "display": "vm-serv-sso-ha1", "name": "vm-serv-sso-ha1", "description": "" }, "name": "0DB71EC0-26D0-4B0A-ACA1-211A9FCDD40F", "enabled": true, "parent": null, "bridge": null, "mtu": null, "mac_address": null, "primary_mac_address": null, "mac_addresses": [ { "id": 14, "url": "https://netbox-local.tld/api/dcim/mac-addresses/14/", "display": "00:15:5D:BB:E3:23", "mac_address": "00:15:5D:BB:E3:23", "description": "" } ], "description": "", "mode": null, "untagged_vlan": null, "tagged_vlans": [], "qinq_svlan": null, "vlan_translation_policy": null, "vrf": null, "l2vpn_termination": null, "tags": [], "custom_fields": {}, "created": "2025-07-01T11:29:21.132131+02:00", "last_updated": "2025-07-01T11:31:47.958673+02:00", "count_ipaddresses": 1, "count_fhrp_groups": 0 } ```
adam added the netbox label 2025-12-29 21:43:50 +01:00
adam closed this issue 2025-12-29 21:43:50 +01:00
Author
Owner

@LLFT commented on GitHub (Jul 1, 2025):

I don't understand. I restarted the server and everything is back to normal.

@LLFT commented on GitHub (Jul 1, 2025): I don't understand. I restarted the server and everything is back to normal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11337