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 >
You also need to make sure that the :repo is the repo["name"] field, NOT the repo["id"] field.
repo["name"]
repo["id"]