Does anybody know how to create an alfresco site from java? I found two api calls that are supposed to create a site:
1) POST /alfresco/service/api/sites. This successfully created a site but when i try to go to the site on alfresco it gives me this error:
A server error has occured.
There are a number of reasons why this could have happened: You have attempted to access a page that does not exist - check the URL in the address bar. You have attempted to access a page that is not accessible to you, such as a private Site dashboard. A valid page has been requested but the server was unable to render it due to an internal error - contact your administrator.
Return to your dashboard page
Alfresco Software Inc. © 2005-2013 All rights reserved.
2) POST /share/service/modules/create-site which gives me a 401 unauthorized. I am passing in the correct alfresco authentication ticket. Does anybody have any experience creating a site programmatically? Preferably with java.