AnsweredAssumed Answered

Create Folder in the Repository using Alfresco ReSTful API

Question asked by jeevitha_balu on Jul 16, 2014
Latest reply on Mar 27, 2016 by rodrigogalodoido
Hello,

I specifically want to try creating a folder inside the alfresco Repository using Alfresco ReSTful api. Although, it is advisable to use CMIS, I would like to know if the same can be achieved using ReSTful api.

I referred the alfresco restful documentation (https://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Create_folder_or_document_.28createDocument.2C_createFolder.29_2) for creating a folder but the response was only the descendants of the parent folder.

Create folder syntax from documentation:
POST ../alfresco/service/api/node/{store_type}/{store_id}/{id}/descendants

Basically, this is what I tried:
../alfresco/service/api/node/workspace/SpacesStore/9dd479ca-d04e-4a6a-9a5a-55a51b484aa3/descendants?alf_ticket=TICKET_b34f0def6ed0c6208103bec0fc4ca86b7fa90813

The above URL displayed the descendants of the parent folder whose id is: 9dd479ca-d04e-4a6a-9a5a-55a51b484aa3

I have two questions:

1. Is it possible to create a folder inside the alfresco repository using Restful api? I do not intend to create folder in a alfresco site.
2. If yes, then could you please help me with a java or .Net snippet? 

Thanks in advance.

Outcomes