Skip to content

Make /api/dcim/cable-terminations/ REST API endpoint read-only #20295

@jeremystretch

Description

@jeremystretch

NetBox version

v4.4.0

Feature type

Change to existing functionality

Proposed functionality

Discontinue support for modifying cable terminations directly via the /api/dcim/cable-terminations/ REST API endpoint. Any changes to a cable's terminations must be made by defining new values for a_terminations and/or b_terminations on cables via the /api/dcim/cables/ endpoint.

The REST API documentation should also be updated to reflect this change and provide clear guidance on the process for updating cable terminations.

Use case

This ensures that cabling changes made via the REST API are always performed in a consistent manner.

This proposal was prompted by bug #15390, in which the end-to-end path traces are not updated appropriately for cable terminations which are added or removed directly.

Database changes

N/A

External dependencies

N/A

Metadata

Metadata

Assignees

Labels

breaking changeThis change modifies or removes some previously documented functionalitycomplexity: lowRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions