update_dhcp_network
Modifies an existing DHCP network entry on a MikroTik device, letting you update gateway, netmask, DNS/NTP/WINS servers, domain, and DHCP options or clear selected fields.
Instructions
Updates fields on an existing DHCP network entry on the MikroTik device.
Notes: Pass an empty list for dns_servers/wins_servers/ntp_servers/dhcp_option (or "" for domain) to clear that field.
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": {
"network": "<network>"
},
"name": "update_dhcp_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| domain | No | ||
| comment | No | ||
| gateway | No | ||
| netmask | No | ||
| network | Yes | ||
| dhcp_option | No | ||
| dns_servers | No | ||
| ntp_servers | No | ||
| wins_servers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |