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",
"access":"read-only"}]}'
'https://dashboard.meraki.com/api/v0/organizations/1234/admins'
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.