cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

308 - Create organization Admin API

SOLVED
Getting noticed

308 - Create organization Admin API

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 ?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Kind of a big deal

Re: 308 - Create organization Admin API

I think you might need the -L flag to tell curl to follow the redirect. 

 

curl -L <rest of your stuff>

View solution in original post

1 REPLY 1
Highlighted
Kind of a big deal

Re: 308 - Create organization Admin API

I think you might need the -L flag to tell curl to follow the redirect. 

 

curl -L <rest of your stuff>

View solution in original post