# Run same Put with multiple variables

**URL:** <https://community.postman.com/t/run-same-put-with-multiple-variables/6284>\
**Category:** Help Hub\
**Created:** [July 3, 2019, 2:55pm UTC](https://community.postman.com/t/run-same-put-with-multiple-variables/6284 "2019-07-03T14:55:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smaniace](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@smaniace](https://community.postman.com/u/smaniace)\
**Post date:** [July 3, 2019, 2:55pm UTC](https://community.postman.com/t/run-same-put-with-multiple-variables/6284/1 "2019-07-03T14:55:10Z")

</div>

I have the Meraki API collection.  
They have the PUT " PUT /networks/[networkId]/devices/[serial]" which allows me to change parameters like "name:“Test”. This works fine one at a time. I have been tasked with updating names of all devices in this network. Over 100 devices. I have an excel list of names with the serial. How can I use postman to update all my devices to match my excel sheet? This is the first of many sites I will have to do so this would be helpful in the long run if this is possible.

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [July 3, 2019, 5:04pm UTC](https://community.postman.com/t/run-same-put-with-multiple-variables/6284/2 "2019-07-03T17:04:40Z")

</div>

@smaniace Welcome to the Postman Community! 👋

You can make use of the [data file feature in the collection runner](https://learning.getpostman.com/docs/postman/collection_runs/working_with_data_files/)  
You can export the excel sheet as a csv and run it in the collection runner.

Your put request will be making use of the variables.  
It’d be something like this:

```auto
PUT /networks/{{networkId}}/devices/{{serial}}

```

If you’re not familiar with the concept of variables in postman, then you can go through the [docs here](https://learning.getpostman.com/docs/postman/environments_and_globals/variables/) to understand them better.

Let me know if you get stuck somewhere, will be happy to help.

---

<div class="post-metadata">

**Author:** ![smaniace](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@smaniace](https://community.postman.com/u/smaniace)\
**Post date:** [July 3, 2019, 5:49pm UTC](https://community.postman.com/t/run-same-put-with-multiple-variables/6284/3 "2019-07-03T17:49:43Z")

</div>

Thanks for the response. Since I post I was able to use Runner and the .csv to do what I need. I used what you had below with [https://api.meraki.com/api/v0/networks/{{networkId}](https://api.meraki.com/api/v0/networks/%7B%7BnetworkId%7D)}/devices/{{serial}}?name={{name}}.  
This updated the network device like I wanted. I was hoping that this would work for more than 1 field I can’t seem to get this to work:

[https://api.meraki.com/api/v0/networks/{{netorkId}](https://api.meraki.com/api/v0/networks/%7B%7BnetorkId%7D)}/devices/{{serial}}?name={{name}}&address={{address}}

Any ideas on how to update more than 1 key at a time?

![image001.png](https://us1.discourse-cdn.com/getpostman/original/3X/a/c/ac149abb4b055dd5242734f60c49f30964e18509.png)

---

<div class="post-metadata">

**Author:** ![smaniace](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@smaniace](https://community.postman.com/u/smaniace)\
**Post date:** [July 3, 2019, 6:22pm UTC](https://community.postman.com/t/run-same-put-with-multiple-variables/6284/4 "2019-07-03T18:22:42Z")

</div>

Must have been a typo because I was able to get it now. Thank you again.

![image001.png](https://us1.discourse-cdn.com/getpostman/original/3X/a/c/ac149abb4b055dd5242734f60c49f30964e18509.png)
