I am trying to use github api to create organization and repositories instead of creating them manually. I was looking at this site which talks about how to create repositor
You could try something like this
curl --include -u victor-raul-hernandez-contreras:your-personal-access-token-here -X POST https://github.hpe.com/api/v3/admin/organizations --data '{"login":"loko200","profile_name":"lokosoft, inc.", "admin":"victor-raul-hernandez-contreras"}'
It worked for me at github enterprise.