<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bulk Name Change in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/bulk-name-change/m-p/5407227#M1458</link>
    <description>&lt;P&gt;I searched for a solution for renaming multiple AP's at once while we build a network in a new building. I didn't find one so I hope how I did it might help someone else. Using postman I created the code needed to make the change to 1 ap's name. I exported that code to powershell. Then I took the part that is actually making the change and pasted it into the excel spreadsheet where I have my list of ap's and what their name should be. I used the concatenate function to insert the device serial numbers and names into that line of code. Then I pasted it all into powershell and clicked run. Here is what the code looked like with identifiable date changed. I am sure this method could be applied to make changes to other devices. I hope this helps someone. &lt;/P&gt;&lt;P&gt;$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"&lt;BR /&gt;$headers.Add("Accept", "*/*")&lt;BR /&gt;$headers.Add("Content-Type", "application/json")&lt;BR /&gt;$headers.Add("X-Cisco-Meraki-API-Key", "putapikeyhere")&lt;/P&gt;&lt;P&gt;$body = "{&lt;BR /&gt;`n `"name`": `"My AP`",&lt;BR /&gt;`n `"lat`": 37.4180951010362,&lt;BR /&gt;`n `"lng`": -122.098531723022,&lt;BR /&gt;`n `"serial`": `"Q000-ABCD-5678`",&lt;BR /&gt;`n `"mac`": `"00:00:00:33:44:55`",&lt;BR /&gt;`n `"tags`": `" recently-added `"&lt;BR /&gt;`n}"&lt;/P&gt;&lt;P&gt;$response = Invoke-RestMethod '&lt;A href="https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-K5ZH-BFRX?name=A100" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-K5ZH-BFRX?name=A100&lt;/A&gt;' -Method 'PUT' -Headers $headers -Body $body&lt;BR /&gt;$response = Invoke-RestMethod '&lt;A href="https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-6RP5-8WC6?name=A101" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-6RP5-8WC6?name=A101&lt;/A&gt;' -Method 'PUT' -Headers $headers -Body $body&lt;BR /&gt;$response = Invoke-RestMethod '&lt;A href="https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-AGNN-4B6D?name=A102" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-AGNN-4B6D?name=A102&lt;/A&gt;' -Method 'PUT' -Headers $headers -Body $body&lt;/P&gt;&lt;P&gt;$response | ConvertTo-Json&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 14:45:36 GMT</pubDate>
    <dc:creator>UMASDBill</dc:creator>
    <dc:date>2022-06-16T14:45:36Z</dc:date>
    <item>
      <title>Bulk Name Change</title>
      <link>https://community.cisco.com/t5/network-platform-api/bulk-name-change/m-p/5407227#M1458</link>
      <description>&lt;P&gt;I searched for a solution for renaming multiple AP's at once while we build a network in a new building. I didn't find one so I hope how I did it might help someone else. Using postman I created the code needed to make the change to 1 ap's name. I exported that code to powershell. Then I took the part that is actually making the change and pasted it into the excel spreadsheet where I have my list of ap's and what their name should be. I used the concatenate function to insert the device serial numbers and names into that line of code. Then I pasted it all into powershell and clicked run. Here is what the code looked like with identifiable date changed. I am sure this method could be applied to make changes to other devices. I hope this helps someone. &lt;/P&gt;&lt;P&gt;$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"&lt;BR /&gt;$headers.Add("Accept", "*/*")&lt;BR /&gt;$headers.Add("Content-Type", "application/json")&lt;BR /&gt;$headers.Add("X-Cisco-Meraki-API-Key", "putapikeyhere")&lt;/P&gt;&lt;P&gt;$body = "{&lt;BR /&gt;`n `"name`": `"My AP`",&lt;BR /&gt;`n `"lat`": 37.4180951010362,&lt;BR /&gt;`n `"lng`": -122.098531723022,&lt;BR /&gt;`n `"serial`": `"Q000-ABCD-5678`",&lt;BR /&gt;`n `"mac`": `"00:00:00:33:44:55`",&lt;BR /&gt;`n `"tags`": `" recently-added `"&lt;BR /&gt;`n}"&lt;/P&gt;&lt;P&gt;$response = Invoke-RestMethod '&lt;A href="https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-K5ZH-BFRX?name=A100" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-K5ZH-BFRX?name=A100&lt;/A&gt;' -Method 'PUT' -Headers $headers -Body $body&lt;BR /&gt;$response = Invoke-RestMethod '&lt;A href="https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-6RP5-8WC6?name=A101" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-6RP5-8WC6?name=A101&lt;/A&gt;' -Method 'PUT' -Headers $headers -Body $body&lt;BR /&gt;$response = Invoke-RestMethod '&lt;A href="https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-AGNN-4B6D?name=A102" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/networks/L_123456789123456789/devices/Q000-AGNN-4B6D?name=A102&lt;/A&gt;' -Method 'PUT' -Headers $headers -Body $body&lt;/P&gt;&lt;P&gt;$response | ConvertTo-Json&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:45:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/bulk-name-change/m-p/5407227#M1458</guid>
      <dc:creator>UMASDBill</dc:creator>
      <dc:date>2022-06-16T14:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Name Change</title>
      <link>https://community.cisco.com/t5/network-platform-api/bulk-name-change/m-p/5407228#M1459</link>
      <description>&lt;P&gt;It might also be beneficial to check out this Youtube video on &lt;A href="https://youtu.be/L4l8DJjNKLM" target="_blank" rel="noopener nofollow noreferrer"&gt;Mass Meraki Changes Without the Need to Code&lt;/A&gt; where they utilize Postman collection runner to automate changes in bulk.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:56:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/bulk-name-change/m-p/5407228#M1459</guid>
      <dc:creator>JasonMo</dc:creator>
      <dc:date>2022-06-16T15:56:00Z</dc:date>
    </item>
  </channel>
</rss>

