cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3161
Views
1
Helpful
1
Replies

308 - Create organization Admin API

damienleick1
Level 2
Level 2

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

jdsilva
Level 11
Level 11

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

jdsilva
Level 11
Level 11

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

curl -L <rest of your stuff>