Update The DHCP Server Policy
PUT {{baseUrl}}/networks/:networkId/switch/dhcpServerPolicy
Update the DHCP server policy #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: defaultPolicy| string| 'allow' or 'block' new DHCP servers. Default value is 'allow'. allowedServers| array| List the MAC addresses of DHCP servers to permit on the network. Applicable only if defaultPolicy is set to block. An empty array will clear the entries. blockedServers| array| List the MAC addresses of DHCP servers to block on the network. Applicable only if defaultPolicy is set to allow. An empty array will clear the entries.
Supports Action Batches
| Resource | Operation |
|---|---|
/networks/{networkId}/switch/dhcpServerPolicy | update |
Request Body
{"defaultPolicy"=>"<string>", "allowedServers"=>["<string>", "<string>"], "blockedServers"=>["<string>", "<string>"]}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
X-Cisco-Meraki-API-Key | null | ||
Content-Type | string |
RESPONSES
status: OK
{"defaultPolicy":"block","allowedServers":["00:50:56:00:00:01","00:50:56:00:00:02"]}