Rename AP with postman runner

Solved
afasquel
Here to help

Rename AP with postman runner

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:

https://documentation.meraki.com/SM/Other_Topics/Renaming_Systems_Manager_Client_Devices_with_a_.csv...

 

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

1 Accepted 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?

 

 

 

View solution in original post

12 Replies 12
PhilipDAth
Kind of a big deal
Kind of a big deal

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?

 

 

 

PhilipDAth
Kind of a big deal
Kind of a big deal

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

afasquel
Here to help

Hello, 

 

I figuredout myself, 

 

The format of the address was invalid as it contained a comma...

 

Stupid me 

 

Cheers

afasquel
Here to help

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

GIdenJoe
Kind of a big deal
Kind of a big deal

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.

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels