title: MS Graph API Permissions for OneDrive Upload
body: <p>I'm trying to automate file uploads to OneDrive by doing a <code>PUT</code> to 
  <code>/drives/{drive-id}/items/{item-id}:/myfile.txt:/content</code>. I've registered an application in Azure Active Directory but cannot figure out what permission/API I need to grant to be able to upload files. Additionally, I would like to only grant permission to the application to upload to a specific folder.</p>
  
  <p>I should note that I do NOT want a delegate permission to upload files on behalf of a user - this is an automated job and won't be associated with a real user.</p>
  
  <p><a href="https://i.stack.imgur.com/OufL3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OufL3.png" alt="enter image description here"></a></p>