title: Chilkat VB.net Google Drive 404 using shared folderID
body: <p>Trying to get this working on shared Google Drive, I was able to get a 200 response initially but the folder was never written anywhere I could find.  So I added the parent and now I am getting 404 error.</p>
  <pre><code>{
   &quot;error&quot;: {
    &quot;errors&quot;: [
     {
      &quot;domain&quot;: &quot;global&quot;,
      &quot;reason&quot;: &quot;notFound&quot;,
      &quot;message&quot;: &quot;File not found: [FileId].&quot;,
      &quot;locationType&quot;: &quot;parameter&quot;,
      &quot;location&quot;: &quot;fileId&quot;
     }
    ],
    &quot;code&quot;: 404,
    &quot;message&quot;: &quot;File not found: [FileId].&quot;
   }
  }
  
  </code></pre>
  <pre><code>       Dim gAuth As New Chilkat.AuthGoogle
          gAuth.AccessToken = GetGoogleAccessToken()
  
          Dim rest As New Chilkat.Rest
  
          '  Connect using TLS.
          Dim bAutoReconnect As Boolean = True
          success = rest.Connect(&quot;www.googleapis.com&quot;, 443, True, bAutoReconnect)
  
          '  Provide the authentication credentials (i.e. the access token)
          rest.SetAuthGoogle(gAuth)
  
          '  A multipart upload to Google Drive needs a multipart/related Content-Type
          rest.AddHeader(&quot;Content-Type&quot;, &quot;multipart/related&quot;)
  
          '  Specify each part of the request.
  
          '  The 1st part is JSON with information about the folder.
          rest.PartSelector = &quot;1&quot;
          rest.AddHeader(&quot;Content-Type&quot;, &quot;application/json; charset=UTF-8&quot;)
  
  
          Dim json As New Chilkat.JsonObject
          json.AppendString(&quot;name&quot;, fFolderName)
          json.AppendString(&quot;description&quot;, &quot;A folder to contain test files.&quot;)
          json.AppendString(&quot;mimeType&quot;, &quot;application/vnd.google-apps.folder&quot;)
          Dim folderId As String = &quot;[folderId confirmed to be working]&quot;
          Dim parents As Chilkat.JsonArray = json.AppendArray(&quot;parents&quot;)
          parents.AddStringAt(-1, folderId)
          rest.SetMultipartBodyString(json.Emit())
  
          '  The 2nd part would be the file content.
          '  Since this is a folder, skip the 2nd part entirely and go straight to the upload..
  
          Dim jsonResponse As String = rest.FullRequestMultipart(&quot;POST&quot;, &quot;/upload/drive/v3/files?uploadType=multipart&quot;)
          If (rest.LastMethodSuccess &lt;&gt; True) Then
              Console.WriteLine(rest.LastErrorText)
              Return False
              Exit Function
          End If
  
  
          '  A successful response will have a status code equal to 200.
          If (rest.ResponseStatusCode &lt;&gt; 200) Then
              Console.WriteLine(&quot;response status code = &quot; &amp; rest.ResponseStatusCode)
              Console.WriteLine(&quot;response status text = &quot; &amp; rest.ResponseStatusText)
              Console.WriteLine(&quot;response header: &quot; &amp; rest.ResponseHeader)
              Console.WriteLine(&quot;response JSON: &quot; &amp; jsonResponse)
              Return False
              Exit Function
          End If
  </code></pre>
  <p>I see a lot of things buzzing around the answer but cannot seem to get this one. I saw adding <code>supportsAllDrives=True</code>, but was not sure where to add that....</p>