Skip to content

Unable to change prefix scope via api #19520

Closed
@ShadowSZ72

Description

@ShadowSZ72

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."
]
}

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions