title: Create folder on OneDrive with API
body: <p>I am trying to create new folder on OneDrive through API, but I am getting Exception </p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'League\OAuth2\Client\Provider\Exception\IdentityProviderException' with message 'Must provide one of the following facets to create an item: Bundle, File, Folder, RemoteItem</p>
  </blockquote>
  
  <p>This is with <code>$a = ["name" =&gt; "Folder"];</code>.</p>
  
  <p>If I change it to this:</p>
  
  <pre><code>$a = ["name" =&gt; "Folder", "folder" =&gt; array()];
  $this-&gt;provider-&gt;post('https://graph.microsoft.com/v1.0/me/drive/root/children',$a,$_SESSION['access_token']);
  </code></pre>
  
  <p>Then I get</p>
  
  <blockquote>
    <p>Property folder in payload has a value that does not match schema</p>
  </blockquote>
  
  <p>From the <a href="https://dev.onedrive.com/items/create.htm" rel="nofollow noreferrer">example page</a> I am assuming that <code>folder</code> value should be empty array. </p>