12-14-2017 04:36 AM
Hi,
On Alfresco V5.2 I found the only one solution to create a site : REST API Alfresco Content Services REST API Explorer
(see bug here : Automatic site creation : surf-config not generated with surf-config)
So, this Web API work for create a site but HOW set a custom sitePreset?
I don't found any solution to :
* defined a site preset with REST API create site
* or defined site-preset on Java Code
* or change site-preset of an existing site on Java Code
12-14-2017 10:55 AM
Presets are defined in XML in your AMP. Can you do it at design/deploy time or must you be able to create a preset at run time?
12-14-2017 11:35 AM
Thx for your answer.
But the question isn't "how create a new preset ?" but "how set a existing preset on site with REST API?"
12-21-2017 03:45 PM
Okay, take a look at the PUT method on the site endpoint: Alfresco Content Services REST API Explorer
Explore our Alfresco products with the links below. Use labels to filter content by product module.