title: TFS Rest API check-in to Version Control
body: <p>From a VSTS extension I need to be able to check-out, edit, and check-in (on-prem TFVC/TFS repo v2015.3)</p>
  
  <p>In the documentation <a href="https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/overview" rel="nofollow">https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/overview</a> it is not clear if there is an APi to do that</p>
  
  <p>MSFT implemented it for their own Web Access "Code" Editor use: <a href="https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/2216206-provide-check-in-check-out-functionality-through-t#" rel="nofollow">https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/2216206-provide-check-in-check-out-functionality-through-t#</a>{toggle_previous_statuses}</p>
  
  <p>So, there is a way to achieve this. I`ve tried to reverse engineer how they did it per Browser Debugging, but the minified/bundled code is not easy to read.</p>
  
  <p>Can somebody please just give me an example on how to do the check-in of source-controlled items per REST api in JS/TypeScript? Thanks!</p>