Adding site/s via the API to newly created ASNs #11899

Closed
opened 2025-12-29 21:51:20 +01:00 by adam · 0 comments
Owner

Originally created by @bctiemann on GitHub (Dec 5, 2025).

Originally assigned to: @bctiemann on GitHub.

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

Originally created by @bctiemann on GitHub (Dec 5, 2025). Originally assigned to: @bctiemann on GitHub. ### 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_
adam added the status: acceptedtype: featurecomplexity: mediumnetbox labels 2025-12-29 21:51:20 +01:00
adam closed this issue 2025-12-29 21:51:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11899