I'd like to note that this answer also helped with a Google Apps Script project. The base url had to be the tenant URL there, just as in PowerShell. Apps Script has a UrlFetchApp.fetch() method which does have a 'followRedirects' option, but it's already set by default to true and even including it explicitly in the function still didn't allow the PUT to succeed. Only using the tenant url (e.g. NXXX.meraki.com) for a PUT would work. Note: I have not attempted to parse out the redirect headers in Apps Script to rebuild a new request, as suggested for PowerShell by MarkD_BT below -- I'm happy it's working as is and can move on. Thanks very much for sharing this tip!
... View more