Update The Traffic Analysis Settings For A Network

PUT {{baseUrl}}/networks/:networkId/trafficAnalysis

Update the traffic analysis settings for a network #### Body Parameters Parameter|Type|Description :-------------: |:-------------: |:-------------: mode| string| The traffic analysis mode for the network. Can be one of 'disabled' (do not collect traffic types), 'basic' (collect generic traffic categories), or 'detailed' (collect destination hostnames).

customPieChartItems| array| The list of items that make up the custom pie chart for traffic reporting.

Request Body

{"mode"=>"<string>", "customPieChartItems"=>[{"name"=>"<string>", "type"=>"<string>", "value"=>"<string>"}, {"name"=>"<string>", "type"=>"<string>", "value"=>"<string>"}]}

HEADERS

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

RESPONSES

status: OK

{&quot;mode&quot;:&quot;detailed&quot;,&quot;customPieChartItems&quot;:[{&quot;name&quot;:&quot;Item from hostname&quot;,&quot;type&quot;:&quot;host&quot;,&quot;value&quot;:&quot;example.com&quot;},{&quot;name&quot;:&quot;Item from port&quot;,&quot;type&quot;:&quot;port&quot;,&quot;value&quot;:&quot;440&quot;},{&quot;name&quot;:&quot;Item from IP&quot;,&quot;type&quot;:&quot;ipRange&quot;,&quot;value&quot;:&quot;192.1.0.0&quot;},{&quot;name&quot;:&quot;Item from IP range (CIDR)&quot;,&quot;type&quot;:&quot;ipRange&quot;,&quot;value&quot;:&quot;192.2.0.0/16&quot;},{&quot;name&quot;:&quot;Item from IP range with port&quot;,&quot;type&quot;:&quot;ipRange&quot;,&quot;value&quot;:&quot;192.3.0.0/16:80&quot;}]}