<?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 Re: 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/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>
    <dc:creator>rowsdower</dc:creator>
    <dc:date>2019-01-21T14:24:45Z</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>

