Unable to change prefix scope via api #11192

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

Originally created by @ShadowSZ72 on GitHub (May 16, 2025).

Originally assigned to: @jnovinger on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.1

Python Version

3.12

Steps to Reproduce

in swagger I send a request to update the prefix
PATCH https://netbox/api/ipam/prefixes/14773/
Request body:
{
"scope_type": "dcim.site",
"scope_id": 1169
}

Expected Behavior

Code 200
and prefix object

Observed Behavior

Code 400
Error: Bad Request
Response body
{
"scope": [
"Please select a site."
]
}

Originally created by @ShadowSZ72 on GitHub (May 16, 2025). Originally assigned to: @jnovinger on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.1 ### Python Version 3.12 ### Steps to Reproduce in swagger I send a request to update the prefix PATCH https://netbox/api/ipam/prefixes/14773/ Request body: { "scope_type": "dcim.site", "scope_id": 1169 } ### Expected Behavior Code 200 and prefix object ### Observed Behavior Code 400 Error: Bad Request Response body { "scope": [ "Please select a site." ] }
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:41:44 +01:00
adam closed this issue 2025-12-29 21:41:44 +01:00
Author
Owner

@ohtarr commented on GitHub (May 23, 2025):

I am experiencing this issue in my test environment as well.

@ohtarr commented on GitHub (May 23, 2025): I am experiencing this issue in my test environment as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11192