title: Can't Move DriveItem in Mocrosoft Graph
body: <p>I am using Python to download PDF files from OneDrive to a local folder, and also moving the files to a different folder in OneDrive after they have been downloaded.</p>
  
  <p>I am able to download the files from OneDrive to a local folder, however, I get a 400 response when trying to move (PATCH) the files to another OneDrive Folder.</p>
  
  <p>Here is my successful code to download the files:</p>
  
  <pre><code>download_url = 'https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/content'
  
  headers = {'Authorization': 'Bearer ' + json_response['access_token']}
  
  download_url_data = requests.get(download_url, headers=headers)
  
  with open('/Users/Name/Folder/file_name, 'wb') as f:
  
       f.write(download_url_data.content)
  </code></pre>
  
  <p>Here is my unsuccessful PATCH request to move the files:</p>
  
  <pre><code>move_url = 'https://graph.microsoft.com/v1.0/me/drive/items/{item-id}
  
  move_headers = {'Authorization': 'Bearer ' + json_response['access_token'],
             'Content-Type' : 'application/json'}
  
  move_body = {'parentReference' : {'id' : '01EV3NG2F6Y2GOVW7775BZO354PUSELRRZ'}}
  
  move_file = requests.patch(move_url, headers=move_headers, data=move_body)
  
  return move_file.status_code
  </code></pre>
  
  <p>I have followed the documentation here <a href="https://docs.microsoft.com/en-us/graph/api/driveitem-move?view=graph-rest-1.0&amp;tabs=http" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/graph/api/driveitem-move?view=graph-rest-1.0&amp;tabs=http</a> and I have tried different parentReference id's, but no luck.</p>
  
  <p>Please help! Cheers.</p>