Update A Layer 3 Interface DHCP Configuration For A Switch Stack

PUT {{baseUrl}}/networks/:networkId/switch/stacks/:switchStackId/routing/interfaces/:interfaceId/dhcp

Update a layer 3 interface DHCP configuration for a switch stack #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: dhcpMode| string| The DHCP mode options for the switch stack interface ('dhcpDisabled', 'dhcpRelay' or 'dhcpServer') dhcpRelayServerIps| array| The DHCP relay server IPs to which DHCP packets would get relayed for the switch stack interface dhcpLeaseTime| string| The DHCP lease time config for the dhcp server running on switch stack interface ('30 minutes', '1 hour', '4 hours', '12 hours', '1 day' or '1 week') dnsNameserversOption| string| The DHCP name server option for the dhcp server running on the switch stack interface ('googlePublicDns', 'openDns' or 'custom') dnsCustomNameservers| array| The DHCP name server IPs when DHCP name server option is 'custom' bootOptionsEnabled| boolean| Enable DHCP boot options to provide PXE boot options configs for the dhcp server running on the switch stack interface bootNextServer| string| The PXE boot server IP for the DHCP server running on the switch stack interface bootFileName| string| The PXE boot server file name for the DHCP server running on the switch stack interface dhcpOptions| array| Array of DHCP options consisting of code, type and value for the DHCP server running on the switch stack interface reservedIpRanges| array| Array of DHCP reserved IP assignments for the DHCP server running on the switch stack interface fixedIpAssignments| array| Array of DHCP fixed IP assignments for the DHCP server running on the switch stack interface

Supports Action Batches

ResourceOperation
/networks/{networkId}/switch/stacks/{switchStackId}/routing/interfaces/{interfaceId}/dhcpupdate

Request Body

{"dhcpMode"=>"<string>", "dhcpRelayServerIps"=>["<string>", "<string>"], "dhcpLeaseTime"=>"<string>", "dnsNameserversOption"=>"<string>", "dnsCustomNameservers"=>["<string>", "<string>"], "bootOptionsEnabled"=>"<boolean>", "bootNextServer"=>"<string>", "bootFileName"=>"<string>", "dhcpOptions"=>[{"code"=>"<string>", "type"=>"<string>", "value"=>"<string>"}, {"code"=>"<string>", "type"=>"<string>", "value"=>"<string>"}], "reservedIpRanges"=>[{"start"=>"<string>", "end"=>"<string>", "comment"=>"<string>"}, {"start"=>"<string>", "end"=>"<string>", "comment"=>"<string>"}], "fixedIpAssignments"=>[{"name"=>"<string>", "mac"=>"<string>", "ip"=>"<string>"}, {"name"=>"<string>", "mac"=>"<string>", "ip"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
X-Cisco-Meraki-API-Keynull
Content-Typestring

RESPONSES

status: OK

{&quot;dhcpMode&quot;:&quot;dhcpServer&quot;,&quot;dhcpLeaseTime&quot;:&quot;1 day&quot;,&quot;dnsNameserversOption&quot;:&quot;custom&quot;,&quot;dnsCustomNameservers&quot;:[&quot;8.8.8.8, 8.8.4.4&quot;],&quot;bootOptionsEnabled&quot;:true,&quot;bootNextServer&quot;:&quot;1.2.3.4&quot;,&quot;bootFileName&quot;:&quot;home_boot_file&quot;,&quot;dhcpOptions&quot;:[{&quot;code&quot;:&quot;5&quot;,&quot;type&quot;:&quot;text&quot;,&quot;value&quot;:&quot;five&quot;}],&quot;reservedIpRanges&quot;:[{&quot;start&quot;:&quot;192.168.1.1&quot;,&quot;end&quot;:&quot;192.168.1.10&quot;,&quot;comment&quot;:&quot;A reserved IP range&quot;}],&quot;fixedIpAssignments&quot;:[{&quot;mac&quot;:&quot;22:33:44:55:66:77&quot;,&quot;name&quot;:&quot;Cisco Meraki valued client&quot;,&quot;ip&quot;:&quot;192.168.1.12&quot;}]}