How can I send request to tyk via curl?

Hello,
How can I send the request to Tyk via curl explained at the following page?

https://tyk.io/docs/tyk-apis/tyk-dashboard-admin-api/sso/

What is “admin-auth: 12345” and what curl command should be used?

POST /admin/sso HTTP/1.1
Host: localhost:3000
admin-auth: 12345
    
{
  "ForSection": "dashboard",
  "OrgID": "588b4f0bb275ff0001cc7471",
  "EmailAddress": "[email protected]",
  "GroupID": ""
}

Thanks & Regards
  • admin-auth is the admin -secret set in the dashboard config file. Curl looks like:
curl --location --request POST 'tyk-dashboard:3000/admin/sso' \ --header 'admin-auth: 12345' \ --header 'Content-Type: text/plain' \ --data-raw '{ "ForSection": "dashboard", "OrgID": "{my-org-id}", "EmailAddress": "[email protected]", "GroupID": "" }'

Thanks @Olu
Where/how can I get “Group Id” ?

  • GroupID - user group id ( it is the mongo id and you can can find it in the url when opening a user group via Tyk- Dashboard UI or if you call Tyk-Dashboard REST API /api/usergroups )