Create Network
hudu_create_networkCreate a new network in Hudu with a CIDR block and company ID to document an IP range, returning the created record including its assigned ID.
Instructions
Create a new network in Hudu. A network is one IP range documented in Hudu — a subnet in CIDR form, owned by a company, holding the individual ip_address records allocated inside it.
Returns the created record, including the id Hudu assigned. Hudu answers 422 with the offending field named when validation fails.
Operation class: Create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the network, e.g. "Head Office LAN". | |
| address | Yes | The network as a CIDR block, e.g. "10.20.0.0/24". This is the range itself; individual hosts are separate ip_address records created with hudu_create_ip_address. | |
| company_id | No | Numeric id of the company that owns this network. Resolve a customer name to an id with hudu_list_companies first. | |
| description | No | Free-text notes about the network — its purpose, VLAN, gateway, whatever helps. | |
| location_id | No | Numeric id of the Hudu location this network serves, for tenants that split a company across sites. The v1 API exposes no locations endpoint, so this server cannot list or resolve location ids; read an existing network at the same site to find the value. | |
| network_type | No | Network type, as an integer. Hudu does not publish what each number means, and the mapping is not derivable from the API — read an existing network on this instance with hudu_list_networks to see which values are in use before setting one. |