Hello, I'm trying to follow instructions for Postman to bulk update device names based on their serial number. I keep getting a 502 Bad Gateway error. I'm able to run different commands for getting my Organization and Network IDs so I know what I'm doing is partially working, I just can't get to the finish line. I'm hoping someone here can help. I have an open ticket with Meraki but it has gone quiet. My most recent attempts have been using a fork of the public Meraki Dashboard API - v1.10. This is the PUT command: {{baseUrl}}/networks/:networkId/sm/devices/fields?serial={{serial}}&deviceFields={"name":{{name}}"} My networkID is set as a variable as well as my X-Cisco-Meraki-API-Key Header. Here is the Code Snippet from Postman if that's helpful, with my network ID and API Key X'd out. import requests
import json
url = "https://api.meraki.com/api/v1/networks/N_5XXXXXXXXXXXXX5/sm/devices/fields?serial=&deviceFields={\"name\":{{name}}\"}"
payload = json.dumps({
"deviceFields": {
"name": "<string>",
"notes": "<string>"
},
"wifiMac": "<string>",
"id": "<string>",
"serial": "<string>"
})
headers = {
'X-Cisco-Meraki-API-Key': 'fXXXXXXXXXXXXXXXXXXXXXXXXX3',
'Content-Type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text) When I run the collection I'm using a CSV file with a serial column and name column. A single entry for testing. This is what the data preview looks like: Thanks for any suggestions, Ross
... View more