Update An Access Policy For A Switch Network

PUT {{baseUrl}}/networks/:networkId/switch/accessPolicies/:accessPolicyNumber

Update an access policy for a switch network. This endpoint only supports access policies with 'My RADIUS server' as authentication method.

Request Body

{"name"=>"<string>", "radiusServers"=>[{"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}, {"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}], "radiusTestingEnabled"=>"<boolean>", "radiusCoaSupportEnabled"=>"<boolean>", "radiusAccountingEnabled"=>"<boolean>", "radiusAccountingServers"=>[{"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}, {"host"=>"<string>", "port"=>"<integer>", "secret"=>"<string>"}], "radiusGroupAttribute"=>"<string>", "hostMode"=>"<string>", "accessPolicyType"=>"<string>", "increaseAccessSpeed"=>"<boolean>", "guestVlanId"=>"<integer>", "voiceVlanClients"=>"<boolean>", "urlRedirectWalledGardenEnabled"=>"<boolean>", "urlRedirectWalledGardenRanges"=>["<string>", "<string>"]}

HEADERS

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

RESPONSES

status: OK

{&quot;accessPolicyNumber&quot;:&quot;1234&quot;,&quot;name&quot;:&quot;Access policy #1&quot;,&quot;radiusServers&quot;:[{&quot;host&quot;:&quot;1.2.3.4&quot;,&quot;port&quot;:22,&quot;secret&quot;:&quot;password1&quot;}],&quot;radiusTestingEnabled&quot;:false,&quot;radiusCoaSupportEnabled&quot;:false,&quot;radiusAccountingEnabled&quot;:true,&quot;radiusAccountingServers&quot;:[{&quot;host&quot;:&quot;1.2.3.4&quot;,&quot;port&quot;:22,&quot;secret&quot;:&quot;password1&quot;}],&quot;radiusGroupAttribute&quot;:&quot;11&quot;,&quot;hostMode&quot;:&quot;Single-Host&quot;,&quot;accessPolicyType&quot;:&quot;Hybrid authentication&quot;,&quot;increaseAccessSpeed&quot;:false,&quot;guestVlanId&quot;:100,&quot;voiceVlanClients&quot;:true,&quot;urlRedirectWalledGardenEnabled&quot;:true,&quot;urlRedirectWalledGardenRanges&quot;:&quot;192.168.1.0/24&quot;}