title: How to create a tag for a specific commit in git using git API
body: <p>I have the commit ID in git and would like to create a tag in git for that specific commit in that repo using git rest APIs. I can't clone the repo locally to do this. Need to use the git Rest API's to perform the tag activity.</p>
  
  <p>I tried to use the below API:
  <a href="https://github.xxx.com/api/v3/repos/sample_org/testrepo1/git/tags" rel="nofollow noreferrer">https://github.xxx.com/api/v3/repos/sample_org/testrepo1/git/tags</a>{/sha}</p>
  
  <p>payload used: 
  {'tag': 'release_2018-02-09-135370b-123-testing','message': 'Testing tagging code','object': sha,'type': 'commit'}</p>
  
  <p>When this call is executed I see it returning 201 success. But when I got to the Git UI I can't find the tag. Is their something I am missing.</p>
  
  <p>Reference API doc URL: <a href="https://developer.github.com/v3/git/tags/" rel="nofollow noreferrer">https://developer.github.com/v3/git/tags/</a></p>