powershell REST API issue with Meraki Dashboard API

Comes here often

powershell REST API issue with Meraki Dashboard API

I'm having a problem with a specific REST api from meraki. I have been able to perform all the get operations with success, however the POST operations I am receiving a "308" error from the server. I'm trying to do the following:


Example request:


curl -L -H 'X-Cisco-Meraki-API-Key: <key>' -X POST -H 'Content-Type: 
application/json' --data-binary '{"name":"Miles Meraki", 
"email":"miles@meraki.com", "orgAccess":"none", "tags":[{"tag":"west", 
My Request:
Invoke-RestMethod -Method Post -Uri https://dashboard.meraki.com/api/v0/organizations/$global:MerakiOrg/admins/ - Body $jbody -Headers $Global:MerakiHeader -ContentType 'application/json' 

 My $jbody value is the literal copied json from the example. I'm not familiar with this 308 code as a return code. Any guidance would be very helpful.

Building a reputation

Hi there,


I have found this one for you.... Maybe some help




Seems a URL redirect error


Hope it helps


Head in the Cloud

Bear in mind that you are using v0 API endpoints, v0 has been deprecated for some time and is now in sunset period where operation is not guaranteed, see:



You really should use v1, it is the current version and is where new features are added.

Meraki Employee

Thanks for reaching out! Glad you asked this publicly because there's a good chance you're not the only person to google this issue.


The shortest solution is to use API v1 endpoints, which have the base URL api.meraki.com, thus avoiding the v0 deprecation issue (as @sungod mentioned), and reaping the benefits of both api.meraki.com and API v1 endpoints.


Of course, if you can reproduce this issue using api.meraki.com and the v1 endpoint, let us know!

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.