<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Set site preset on creation with REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71651#M23361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Hi!&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;I'm trying to create a site using the REST API. Everything seems to work except when I try to set&amp;nbsp;the site preset I get&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #727174; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;400 -&amp;nbsp;Site preset should not be set&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;I also tried using the PUT method to update the site but then I get&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #727174; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;400 -&amp;nbsp;Site update does not support field: preset&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;This happens with a custom preset I created and with the default&amp;nbsp;site-dashboard.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;JSON examples:&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;This works:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #727174; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"id": "ajeje",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"title": "ajeje",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"description": "ajeje",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"visibility": "PUBLIC"&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;This doesn't:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #727174; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"id": "ajeje",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"title": "ajeje",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"description": "ajeje",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"visibility": "PUBLIC",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"preset": "&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;site-dashboard&lt;/SPAN&gt;"&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Is this functionality really not available?&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;This is in a docker installation, Share version 6.0.c, Content Repository version 6.1.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2019 16:52:16 GMT</pubDate>
    <dc:creator>rowsdower</dc:creator>
    <dc:date>2019-01-09T16:52:16Z</dc:date>
    <item>
      <title>Set site preset on creation with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71651#M23361</link>
      <description>Hi!I'm trying to create a site using the REST API. Everything seems to work except when I try to set&amp;nbsp;the site preset I get400 -&amp;nbsp;Site preset should not be setI also tried using the PUT method to update the site but then I get400 -&amp;nbsp;Site update does not support field: presetThis happens with a custom p</description>
      <pubDate>Wed, 09 Jan 2019 16:52:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71651#M23361</guid>
      <dc:creator>rowsdower</dc:creator>
      <dc:date>2019-01-09T16:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set site preset on creation with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71652#M23362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really is not available. The check for the&amp;nbsp;preset parameter is hard-coded to always throw the exception. The reason behind this is that the ReST API only know how to import / pre-construct the structure of a default site, and it offers no extensoin point to allow adding an import for an arbitrary preset. Alfresco being Alfresco, they opted for the easiest solution that would allow them to release a new feature:&amp;nbsp;hard-disallowing sensible parameters to be used and not&amp;nbsp;caring for people that extend Alfresco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 08:24:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71652#M23362</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-01-11T08:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set site preset on creation with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71653#M23363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be noted that one can always try to enhance their implementation by providing a pull request on GitHub. That might be the most likely way to make their minimal viable features into usable ones these days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 08:25:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71653#M23363</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-01-11T08:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set site preset on creation with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71654#M23364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anyone is having the same issue our "solution" was to use the create-site webscript, the one that gets called when you create a site from the UI. &lt;A href="https://www.seedim.com.au/dealing-with-csrf-for-creating-a-site-in-alfresco-5-1/" rel="nofollow noopener noreferrer"&gt;Here &lt;/A&gt;is an example written in JavaScript, we did something similar in C#.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:24:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/set-site-preset-on-creation-with-rest-api/m-p/71654#M23364</guid>
      <dc:creator>rowsdower</dc:creator>
      <dc:date>2019-01-21T14:24:45Z</dc:date>
    </item>
  </channel>
</rss>

