update_mobility_device_network
Update LAN and DHCP settings for a UniFi UMR device, including gateway, DHCP mode, range, and lease time. Requires explicit confirmation to apply changes.
Instructions
Update a UMR device's LAN / DHCP settings (guarded write). Mutates live config.
DOCUMENTED partial update: only provided fields are applied (WAN/IPv6/ InternetSource are not configurable here). At least one field is required. WARNING: docs conflict on full-replacement vs partial-merge PUT semantics, so writes are gated OFF by default pending live verification (issue #186). dhcp_mode is 'dhcp' (enabled) or 'none' (disabled); IPs must be IPv4; dhcp_lease_time is seconds (0 = infinite). Read-before, no-op detection on the observable host_address, confirm=true guard, kill-switch, read-after.
workspace_id: the workspace UUID from list_mobility_workspaces. device_id: the device UUID from list_mobility_devices. host_address: optional new LAN gateway IPv4. dhcp_mode: optional 'dhcp' or 'none'. dhcp_range_start: optional DHCP pool start IPv4. dhcp_range_stop: optional DHCP pool end IPv4. dhcp_lease_time: optional DHCP lease seconds (>=0; 0 = infinite). confirm: must be true to apply the change. key_label: optional configured API-key label to route on a specific key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| device_id | Yes | ||
| dhcp_mode | No | ||
| key_label | No | ||
| host_address | No | ||
| workspace_id | Yes | ||
| dhcp_lease_time | No | ||
| dhcp_range_stop | No | ||
| dhcp_range_start | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||