I am using Freshdocs for Android
I can login to the Alfresco server using this API call:
GET /alfresco/service/api/login?u={username}&pw={password?}
But how do I create a new folder in Alfresco?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two main options, but it’ll depend on what else you want to do, and what version of Alfresco you’re running.
Assuming you want to keep things very simple, and you just want to create one folder, and you’re using Alfresco 4.1 or later, then you can use the
org.alfresco.repository.node.folder.postwebscript. For this, simply post JSON like eitheror
To the API, which takes a URL like
/api/site/folder/{site}/{container}/{path}Alternately, if you want to do a number of different file and folder operations (eg navigate the folder structure, create a folder, upload a file to it etc), then you should instead use CMIS. Apache Chemistry is a great library to use for CMIS, and it even has an Android client! The docs for the android client are still being written thought (the Android port was only just added), so you might need to ask on the mailing list if you don’t have time to wait for the docs.