Dear all,
I'm trying to update AP attributes in bulk using Postman runner and a CSV file.
There is similar article for updating devices attributes:
The syntax must be diffrent though cuz I still get a 404 not found with the following command:
https://dashboard.meraki.com/api/v0/networks/N_xxxxxxxxxxxxxxxxxx/devices/fields?serial= {{serial}}&deviceFields={"name":"{{name}}"}
Does any one have a clue how to achieve this ?
Cheers
Solved! Go to solution.
I already use this API for a one shot change
But I don't know how to include the change of name as a variable here. "name":"{{name}}"
Should it be in the body? in the API link?
You should be using this API:
https://dashboard.meraki.com/api_docs#update-the-attributes-of-a-device
Here is the postman documentation for it:
https://dashboard.meraki.com/api_docs#update-the-attributes-of-a-device
The URL should be:
https://api.meraki.com/api/v0/networks/{{networkId}}/devices/{{serial}}
I already use this API for a one shot change
But I don't know how to include the change of name as a variable here. "name":"{{name}}"
Should it be in the body? in the API link?
The URL I posted has a copy and paste curl example. Just format your data the same.
Hello, I figured it out too and ended on the same command as you
https://api.meraki.com/api/v0/networks/{{networkId}}/devices/{{serial}}
{
"name": "{{name}}",
"address": "{{address}}"
}
Could you please share full link, I have been trying this with no luck.
Thank you!
Hi would you have the complete code you could share
Thanks
Hello,
I figuredout myself,
The format of the address was invalid as it contained a comma...
Stupid me
Cheers
Hello,
I figured out myself,
The format of the address was invalid as it contained a comma...
Stupid me
Cheers
Hello,
could you share the full link you used?
Thank you.
URL:
https://dashboard.meraki.com/api/v0/networks/N_XXXXXXXXXXX/devices/{{serial}}
Body
{
"name": "{{name}}",
"address": "{{address}}"
}
I'e been banging my head against this bulk rename for Meraki APs for a while, and found your post. Could you please share complete Postman steps you went through? You can PM me at troy.reppert@corebts.com.
I like you have been able to use the put command to make single changes, just couldn't get a csv file to pass variables. I've also started working with JSON file to try to make the change. Been working through the same docs as you, just keep getting the 404 error.
Thanks
I think you'll need to fetch all your devices and then look at the action batches so you can add all your entries in there and POST the action batch with all the renames.
Maybe some good ol' text edit edit/replace will be required.