github API - using curl PUT to add a repo to a team

前端 未结 3 1206
一整个雨季
一整个雨季 2021-02-05 19:34

I am trying to add a repo to a team on github, thus:

curl -i -u username:password  -X PUT  -d "" https://api.github.com/teams/:team/repos/:user/:repo
         


        
3条回答
  •  一整个雨季
    2021-02-05 20:34

    You also need to make sure that the :repo is the repo["name"] field, NOT the repo["id"] field.

提交回复
热议问题