title: Google Drive create new folder in shared drive
body: <p>I'm able to create a new folder within a parent folder on my personal Google Drive, but when I try to do it in a shared drive, I get this error:</p>
  
  <p><code>&lt;HttpError 404 when requesting https://www.googleapis.com/drive/v3/files?fields=id&amp;alt=json returned "File not found:</code></p>
  
  <p>It looks like a similar problem from <a href="https://stackoverflow.com/questions/59725503/creating-a-new-folder-google-drive-api">this question</a>, which wasn't resolved.</p>
  
  <p>I'm a manager on the account, and other commands, such as creating new files, work fine.</p>
  
  <p>This is the function I'm successfully using when writing to my personal Drive:</p>
  
  <pre><code>def create_folder_in_folder(folder_name,parent_folder_id):
  
      file_metadata = {
      'name' : folder_name,
      'parents' : [parent_folder_id],
      'mimeType' : 'application/vnd.google-apps.folder'
      }
  
      file = service.files().create(body=file_metadata,
                                      fields='id').execute()
  
      print ('Folder ID: %s' % file.get('id')) 
  </code></pre>