Update Network
hudu_update_networkUpdate an existing network's fields in Hudu, such as name, CIDR address, owning company, or notes. Because Hudu overwrites supplied fields, read the current record first to avoid losing data.
Instructions
Update an existing network. 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.
Only the fields you supply are sent. Be aware that Hudu applies these as a PUT: for fields you do send, the new value replaces the old one outright — read the record first with hudu_get_network if you intend to append rather than overwrite.
Operation class: Update. Impact: Overwrites the supplied fields on this network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric Hudu id of the network. | |
| name | No | Name of the network as people refer to it, e.g. "Head Office LAN" or "Guest WiFi". | |
| address | No | The network as a CIDR block — the whole range, not one host. "10.20.0.0/24", "192.168.1.0/24", "2001:db8::/64". A single address belongs on an ip_address record instead; see 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. |