AnsweredAssumed Answered

Set site preset on creation with REST API

Question asked by rowsdower on Jan 9, 2019
Latest reply on May 13, 2019 by douglascrp

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.

Outcomes