title: Upload or create new file with content via Google Drive REST API?
body: <p>I'm trying to create a new document based on a template through the Google Drive REST API (I'm not using the Java or JS SDKs).</p>
  
  <p>I'd like to create the document based on a word-processing template, either by downloading the template from Drive and replacing some content $keywords, or, editing an rtf format template and inserting that as a new file.</p>
  
  <p>I'm comfortable with REST and I'm able to download the template from Drive, and access the exportLinks to download the file content as rtf or txt.  But... once I've edited the content, how to I provide that content as fileContent to the insert/update http post?</p>
  
  <p>Is this possible? I thought it would be through the method:</p>
  
  <p>POST <a href="https://www.googleapis.com/upload/drive/v2/files" rel="nofollow">https://www.googleapis.com/upload/drive/v2/files</a></p>
  
  <p>Thanks!</p>