API REST - Create Site with preset

cancel
Showing results for 
Search instead for 
Did you mean: 
gawel
Active Member II

API REST - Create Site with preset

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
jpotts
Professional

Re: API REST - Create Site with preset

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
Active Member II

Re: API REST - Create Site with preset

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
Professional

Re: API REST - Create Site with preset

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