For a Postman solution to this, you could use the Runner tool to import a CSV or JSON file with a list of IDs to act as variables for each run of the request.
Start by creating a new Collection for this Runner group
- Copy in the "Bind a network to a template" endpoint into your new collection. (delete any existing headers)
- The POST body should look like this
{
"configTemplateId": "{{configTemplateId}}"
}
- Add a Tests script for better logging
pm.test("Status code is 201", function () {
pm.response.to.have.status(201);
});
- Make sure your environment has an {{apiKey}} variable set
- Make sure your Collection has the following Authorization config
![DexterLaBora_1-1636980405922.png DexterLaBora_1-1636980405922.png](https://community.meraki.com/t5/image/serverpage/image-id/20841iF389744438670679/image-size/medium?v=v2&px=400)
Then "Run" the collection.
![DexterLaBora_2-1636980699149.png DexterLaBora_2-1636980699149.png](https://community.meraki.com/t5/image/serverpage/image-id/20842iEBB89C2646492F5B/image-size/medium?v=v2&px=400)
Upload a csv file with two columns and a row for each networkId and its desired configTemplateId or a JSON file with an array with the those params for each network.
Set the Delay to about 250ms
file.csv
networkId,configTemplateId
L_6434517960000001,N_111111111
L_6434517960000002,N_111111111
L_6434517960000003,N_111111111
L_6434517960000004,N_222222222
L_6434517960000004,N_222222222
![DexterLaBora_4-1636981726692.png DexterLaBora_4-1636981726692.png](https://community.meraki.com/t5/image/serverpage/image-id/20844iFDDA90249200A504/image-size/large?v=v2&px=999)
![Runner demo - bind network.png Runner demo - bind network.png](https://community.meraki.com/t5/image/serverpage/image-id/20826i1E9532A16AAB3374/image-size/large?v=v2&px=999)
This will run the desired API for each network, binding it to the config template. You will get a report of each request so you have a log of what worked or had issues.
example summary (using Blink the LEDs )
![DexterLaBora_3-1636981621408.png DexterLaBora_3-1636981621408.png](https://community.meraki.com/t5/image/serverpage/image-id/20843i44C0409B24FA9BED/image-size/medium?v=v2&px=400)
Hope this helps!