title: Adding Repos to a team in Github
body: <p>I am having trouble on using the github api to add the Repos to a team in Github Enterprise</p>
  
  <p>according to GitHub API: i should call:</p>
  
  <pre><code>PUT /teams/:team_id/repos/:owner/:repo
  </code></pre>
  
  <p>and iam making the below call using my access token</p>
  
  <pre><code>curl -H "Authorization: token personal_access_token" https://api.github.com/teams/test-team/repos/mohit/test_data
  </code></pre>
  
  <p>I received the  json data:</p>
  
  <pre><code>{
      "message": "Bad credentials",
      "documentation_url": "https://developer.github.com/v3"
  }
  </code></pre>
  
  <p>here is the link for the documentation: <a href="https://developer.github.com/v3/teams/#add-or-update-team-repository" rel="nofollow noreferrer">https://developer.github.com/v3/teams/#add-or-update-team-repository</a></p>
  
  <p>Iam not able to add Repos to team.
  How to proceed with adding Repos to a team in an organization in Github Enterprise?</p>