# Issues with bulk renaming of Meraki APs using Postman Runner

**URL:** <https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917>\
**Category:** Help Hub\
**Tags:** collections, authentication, json\
**Created:** [December 19, 2024, 4:11pm UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917 "2024-12-19T16:11:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![the-real-roo](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@the-real-roo](https://community.postman.com/u/the-real-roo)\
**Post date:** [December 19, 2024, 4:11pm UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/1 "2024-12-19T16:11:09Z")

</div>

I’m trying to do a bulk rename of Meraki APs in Postman. I have Postman set up with the following variables

![The_Roo_0-1734434500083.png](https://community.meraki.com/t5/image/serverpage/image-id/41077iDACE339B44DE0AAA/image-size/medium?v=v2&px=400 "The\_Roo\_0-1734434500083.png")

And they work, so if I do any of the following, I get the expected output

GET {{baseUrl}}/organizations

GET {{baseUrl}}/organizations/:organizationId/networks

GET {{baseUrl}}/organizations/:organizationId/devices

GET {{baseUrl}}/networks/:networkId/devices

GET {{baseUrl}}/networks/:networkId/wireless/ssids/

I want to use runner, to enable me to do many AP renames automatically, so I created a CSV file called “name-change-data” with a header line and in this first instance, a single line relating to a single AP I want to test on (when this test works, I will add lines for all the APs I want to change)

The serial number in the file is the number seen in the Meraki Dashboard, so I know that is right, and the name is just a different string to what the AP is called at the moment.

I then create a collection called “Bulk Rename APs” that looks like this:

{{baseUrl}}/networks/{{networkId}}/devices/{{serial}}

the format of which was as specified in [Solved: Rename AP with postman runner - The Meraki Community](https://community.meraki.com/t5/Wireless/Rename-AP-with-postman-runner/m-p/21137#M3507)

Next, I set up the body section as follows:

{

“name”: “_{{name}}_”,

“serial”: “_{{serial}}_”

}

I then go to file\>New Runner Tab, and get a window that asks me to “Drag a collection from the sidebar to run”, so I drag “Bulk Rename APs” in. It goes in with a lot of others, so I deselect all of them and reselect “Bulk Rename APs” only.

![The_Roo_2-1734434500086.png](https://community.meraki.com/t5/image/serverpage/image-id/41079i5DA2D66F9C67808D/image-size/medium?v=v2&px=400 "The\_Roo\_2-1734434500086.png")

On the right of the page, I click “Select File” and select “name-change-data.csv” and then click the “run” button. I get an error notification telling me to look at the console, which has this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/9/9/99a6b235377a26ba0fa8d800ada917cf0e007b2c.png)

What am I doing wrong, and why is github flagged?

All advice gratefully recieved!

Thanks

Roo

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 19, 2024, 9:12pm UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/2 "2024-12-19T21:12:25Z")

</div>

Hey @the-real-roo 👋

Welcome to the Postman Community! :postman:

That Github URL looks like it’s an async request coming from a Pre-request script with the Collection. That also looks like there is some other code that’s trying to parse the response of that request and it’s failing.

---

<div class="post-metadata">

**Author:** ![the-real-roo](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@the-real-roo](https://community.postman.com/u/the-real-roo)\
**Post date:** [December 20, 2024, 9:33am UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/3 "2024-12-20T09:33:47Z")

</div>

Sorry Danny, I don’t know enough about Postman to understand your response or make useful changes based upon it. Can you explain as if to a 7-year-old child please

Thanks  
Roo

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 20, 2024, 9:50am UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/4 "2024-12-20T09:50:56Z")

</div>

The `Bulk Rename APs` POST request or the Collection contains a _Post-response script_ that has an async request (`pm.sendRequest()`). This is making a request to that Github URL to do _something_.

That same script is probably trying to parse the response of the async request and as it’s returning something unexpected, it’s failing.

I have no idea what the script is or what it’s doing but it’s there and that’s what is failing.

---

<div class="post-metadata">

**Author:** ![the-real-roo](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@the-real-roo](https://community.postman.com/u/the-real-roo)\
**Post date:** [January 2, 2025, 2:42pm UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/5 "2025-01-02T14:42:41Z")

</div>

You said

> [@danny-dainton](#):
>
> The `Bulk Rename APs` POST request or the Collection contains a _Post-response script_ that has an async request (`pm.sendRequest()`). This is making a request to that Github URL to do _something_.

So I had a look at the scripts area and foud this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/3/e3f72747c61adc66269f517afaf98526080b246d.png)  
so while I understand what you are saying and it sounds completely reasonable, I can’t find the script where I would expect it…can you suggest where it would be?

Thanks

Roo

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 3, 2025, 7:26pm UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/6 "2025-01-03T19:26:08Z")

</div>

The script is going to be at the Collection level.

From what it looks like, first forming a better understanding of the Collection and the Requests within it, to know exactly what you’re running would be very beneficial here.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [January 10, 2025, 7:26pm UTC](https://community.postman.com/t/issues-with-bulk-renaming-of-meraki-aps-using-postman-runner/72917/7 "2025-01-10T19:26:33Z")

</div>

Closed on January 10, 2025, 7:26pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
