Swagger: Bulk Delete of IPAddress #10815

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

Originally created by @soumiksamanta on GitHub (Feb 27, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.3

Python Version

3.10

Steps to Reproduce

Using the swagger to bulk delete multiple IPAddresses does not work. The request body as per the OpenAPI Spect a list of IPAddress model

curl -X 'DELETE'
'http://netbox.nokia.com:8090/api/ipam/ip-addresses/'
-H 'accept: /'
-H 'Content-Type: application/json'
-H 'X-CSRFTOKEN: GG45Az6VW9x5EouvV3tCX0obbqa80xZ2sCdJujXyXMfskd9Fdpcn4AfwdyXrRHWG'
-d '[
{
"address": "1.1.1.1/32"
}
]'

Expected Behavior

Successful deletion of ipAddresses.
The API spec should match as per the behavior of the server. If the expectation is to provide list of ipAddressIDs as a request to bulkdelete, the OpenAPI spec should reflect the same.

Observed Behavior

However on executing HTTP 400 is returned

[
{
"id": [
"This field is required."
]
}
]

Originally created by @soumiksamanta on GitHub (Feb 27, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.3 ### Python Version 3.10 ### Steps to Reproduce Using the swagger to bulk delete multiple IPAddresses does not work. The request body as per the OpenAPI Spect a list of IPAddress model curl -X 'DELETE' \ 'http://netbox.nokia.com:8090/api/ipam/ip-addresses/' \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ -H 'X-CSRFTOKEN: GG45Az6VW9x5EouvV3tCX0obbqa80xZ2sCdJujXyXMfskd9Fdpcn4AfwdyXrRHWG' \ -d '[ { "address": "1.1.1.1/32" } ]' ### Expected Behavior Successful deletion of ipAddresses. The API spec should match as per the behavior of the server. If the expectation is to provide list of ipAddressIDs as a request to bulkdelete, the OpenAPI spec should reflect the same. ### Observed Behavior However on executing HTTP 400 is returned [ { "id": [ "This field is required." ] } ]
adam closed this issue 2025-12-29 21:36:14 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 22, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jul 22, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Aug 22, 2025):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Aug 22, 2025): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10815