- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bulk renaming of APs through Postman Runner
I have been trying to set up a Postman Runner job to bulk rename Meraki APs through the API.
Following the steps in:
https://community.meraki.com/t5/Wireless/Rename-AP-with-postman-runner/m-p/21137#M3507
I have created the following:
POST {{baseUrl}}/networks/{{networkId}}/devices/{{serial}}?name={{name}}
with a body that contains the following:
{
"name": "{{name}}",
"serial": "{{serial}}"
}
I then created a CSV file with the following information:
serial,name
Qxxx-6yyy-Uzzz,HQ-PMDF-AP999
(I've anonymised the real serial number)
Next, I opened up a new runner tab, loaded it with the collection above, pointed it at the CSV file and ran it.
What I got is shown below:
so the output shows it has gone to the right network, picked up both the AP serial number and the new AP name from the CSV file OK, but is showing a 404, not found, and is not updating the AP name.
I think this may be because it needs to know old and new names, and can't find the new name in the network (hence the 404 error), which is correct, but I don't see how to make it search out the old name and swap it for the new.
Incidentally, I also get "No Tests Found" but I think that is informational and is because I have just tried to do something but issued no tests....that what i think, but confirmation would be nice!
Thanks
Roo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I only dabble in API stuff and I literally did a runner for the first time time today, but I think you may be using an invalid/retired syntax.
Update device is now network (and organization) agnostic: https://developer.cisco.com/meraki/api-v1/update-device/
If you sync the latest api collection to your postman install you should see this API endpoint and be able to create a runner off of it with the CSV you have and be successful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah the post referenced was started back in 2018 and mentioned deprecated API endpoints. I haven't tried doing bulk editing with the new endpoints yet. But I agree a new endpoint would need to be used to get this working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some quick testing using Runner and I'm getting various errors. But the endpoint works fine when I do a single call. Not sure what the issue is. Not enough brain power to continue poking at it today.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't used it in a very long time, but you could also look at the Bulk Network Creation Tool.
