How to create Organization name through Github API instead of creating manually?

前端 未结 4 1408
深忆病人
深忆病人 2020-12-20 02:22

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

4条回答
  •  猫巷女王i
    2020-12-20 02:51

    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.

提交回复
热议问题