Create github auth config with api

Can anyone point me in the right direction of the post i need to make to /v1-auth/config to configure a github auth access? Tried trough the old /v1/githubconfigs with a correct post but dosnt seem to work.

curl
-X POST
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{“accessMode”:“unrestricted”, “allowedIdentities”:[], “clientId”:“id”, “clientSecret”:“secret”, “enabled”:true, “name”:“githubconfig”, “scheme”:“https://”}’
http://localhost:8080/v1/githubconfigs