02-12-2020 01:03 PM
Hi,
i would like to create a couple of admin in the dashboard with the API.
I try with the https://developer.cisco.com/meraki/api/ but i've always have a : 308 you are being redirected.
I don't receive email notification and the admin is not created
Example :
curl -X POST \ --url 'https://api.meraki.com/api/v0/organizations/MY_ORG_ID/admins' \ -H 'X-Cisco-Meraki-API-Key: MY_API_KEY'\ -H 'Accept: application/json' \ -H 'Content-type: application/json' \ --data-raw '{ "email": "myemail@gmail.com", "name": "Jon tron", "orgAccess": "none", "tags": [ { "tag": "my tag1", "access": "read-only" }, { "tag": "my tag2", "access": "read-only" } ] }'
Any idea ?
Solved! Go to Solution.
02-12-2020 01:49 PM
I think you might need the -L flag to tell curl to follow the redirect.
curl -L <rest of your stuff>
02-12-2020 01:49 PM
I think you might need the -L flag to tell curl to follow the redirect.
curl -L <rest of your stuff>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide