title: Creating a sub folder node in Alfresco Community Edition v5.0.0
body: <p>I've got a Laravel project whereby I'm creating files on the server, and then uploading a folder and all of its contents to an Alfresco site, using the RESTful services.</p>
  
  <p>What I've done so far:</p>
  
  <ul>
  <li>Login is working</li>
  <li>Uploading a file into a node with the nodeId</li>
  </ul>
  
  <p>What I'm struggling with:</p>
  
  <p>How can I create a folder under the site, knowing the root nodeId/nodeRef, using the RESTful services and not the CMIS services? Is there an easier way to achieve this?</p>
  
  <p>I've tried using the instructions below, as well as searched this on Stackoverflow before, trying the suggestions others have posted, but to no avail (I get a 404 or 500 response even though the nodeId I pass is valid)</p>
  
  <p><a href="http://docs.alfresco.com/5.0/references/RESTful-NodeFolderPost.html" rel="nofollow noreferrer">http://docs.alfresco.com/5.0/references/RESTful-NodeFolderPost.html</a></p>
  
  <p>I also find the Community documentation to be quite limiting and brief which doesn't help very much.</p>
  
  <p>Any help or guidance would be immensely appreciated! :)</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I've read over this post (and many others):
  <a href="https://stackoverflow.com/questions/11710908/how-to-create-folder-in-alfresco-by-restful-api">How to create folder in Alfresco by RESTful API</a></p>
  
  <p>I have a few functions already built which are working already using the RESTful services, the last one I need to do is creating a folder node. I don't mind using the CMIS solution, but I would prefer to keep that as my last resort, because the subsystem I've build is micro, and the importing and using another library reduces the priority of this solution.</p>
  
  <p><strong>Put plainly</strong>: Is there not a way to POST a JSON structure to a URL of the Alfresco instance to create a folder node under my site's document library?</p>
  
  <p>I've tried these prescribed ways:</p>
  
  <pre><code>POST /alfresco/service/api/node/folder/{store_type}/{store_id}/{id}
  POST /alfresco/service/api/site/folder/{site}/{container}/{path}
  POST /alfresco/service/api/site/folder/{site}/{container}
  </code></pre>
  
  <p>The first one creates a node which isn't accessible via the document library, and the other two return 404/500 responses</p>