Set site preset on creation with REST API

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

Set site preset on creation with REST API

Hi!

I'm trying to create a site using the REST API. Everything seems to work except when I try to set the site preset I get

400 - Site preset should not be set

I also tried using the PUT method to update the site but then I get

400 - Site update does not support field: preset

This happens with a custom preset I created and with the default site-dashboard.

JSON examples:

This works:

{
   "id": "ajeje",
   "title": "ajeje",
   "description": "ajeje",
   "visibility": "PUBLIC"
}

This doesn't:

{
   "id": "ajeje",
   "title": "ajeje",
   "description": "ajeje",
   "visibility": "PUBLIC",
   "preset": "site-dashboard"
}

Is this function really not available?

This is in a docker installation, Share version 6.0.c, Content Repository version 6.1.1.

1 Reply
douglascrp
Advanced II

Re: Set site preset on creation with REST API

Hello.

As you can see in the link below, there is not support for the preset field:

Alfresco Content Services REST API Explorer