netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Adding site/s via the API to newly created ASNs

Open bctiemann opened this issue 1 month ago • 0 comments

NetBox version

v4.4.7

Feature type

Data model extension

Proposed functionality

Feature request from a customer. A customer has recently noted, that when creating a new ASN via the NetBox API. They are unable to allocate the site/s as you can when creating the same object through the UI for NetBox.

Use case

Looking at the REST API documentation you can only add the following when creating an ASN;

asn, rir, comments, tenant, description and tags.

You can however add this separately to the individual site/s themselves, by either creating or editing those objects within the REST API using the relevant fields.

Could we add this ability to ASNs in reverse, so that sites can be assigned during creation and when editing them with the API?

Database changes

No response

External dependencies

No response

bctiemann avatar Dec 05 '25 12:12 bctiemann