cancel
Showing results for 
Search instead for 
Did you mean: 

API REST - Create Site with preset

gawel
Confirmed Champ
Confirmed Champ

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

3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator

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?

gawel
Confirmed Champ
Confirmed Champ

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?"

jpotts
World-Class Innovator
World-Class Innovator

Okay, take a look at the PUT method on the site endpoint: Alfresco Content Services REST API Explorer