title: Upload file to SharePoint drive using Microsoft Graph
body: <p>We are trying to implement integration between a web application and SharePoint Online using Microsoft Graph rest API.</p>
  
  <p>Specifically, we need to upload a file to a specific SharePoint site's document library (drive), different than current user default drive. We get the access token through Azure AD with access to all files.</p>
  
  <p>We can upload files into any drive using <code>/v1.0/me/drive/...</code> but not when we use another drive. </p>
  
  <p>For example:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var response = client.PutAsync(graphResourceUrl +
      "/beta/sharepoint/sites/" + siteCollSiteId +
      "/lists/" + listId +
      "/drive/root/children/" + fileName + ":/content",
      new ByteArrayContent(fileBytes)).Result;
  
  var response = client.PutAsync(graphResourceUrl +
      "/beta/drives/" + "/" + listId +
      "/items/" + siteCollSiteId + "/" + fileName + ":/content",
      new ByteArrayContent(fileBytes)).Result;
  
  var response = client.PutAsync(graphResourceUrl +
      "/beta/drives/" + listId + "/" + fileName + ":/content",
      new ByteArrayContent(fileBytes)).Result;
  </code></pre>
  
  <p>Both <code>/v1.0</code> and <code>/beta</code> (in the case of SharePoint containing path) we are getting an error response of <code>Not Implemented</code>.</p>
  
  <p>What could we be doing wrong? Is it not yet working with Microsoft Graph (other than <code>/me</code>)? </p>