Update Network (LAN/VLAN)
unifi_update_networkReplace an existing LAN network or VLAN configuration with a full object update. Fetch current settings, modify needed fields, and submit the complete config to apply changes.
Instructions
Replace the configuration of an existing LAN network / VLAN (full PUT). Fetch the current object with unifi_get_network (responseFormat='json'), change what you need, and pass the whole object as 'config'. CAUTION: changing subnet/VLAN/DHCP can disconnect every client on this network — confirm with the user first. IDs come from unifi_list_networks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"networkId": "<networkId>",
"config": "<config>"
},
"name": "unifi_update_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Full network object to write (fetch current via unifi_get_network, then modify). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out. | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| networkId | Yes | Network ID (UUID from unifi_list_networks) |