<?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 Creating a group using cURL with REST api in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47584#M18687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please I'm new to Alfresco and I tried to create a group using curl on my command line terminal. Here's the code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -uadmin:rockstar -X PUT { "newGroup" : ["authorityType" : "GROUP", "shortName" : "COMPUTER_SCIENCE_400LVL", "fullName" : "COMPUTER_SCIENCE_400_LEVEL", "displayName" : "COMPUTER_SCIENCE_400LVL", "url" : "api/groups/COMPUTER_SCIENCE_400LVL", "zones" : ["APP.DEFAULT", "AUTH.ALF"] "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/service/api/groups" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/service/api/groups&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;curl: (3) [globbing] unmatched brace in column 1&lt;BR /&gt;curl: (6) Could not resolve host: newGroup&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (3) [globbing] bad range in column 2&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (6) Could not resolve host: GROUP,&lt;BR /&gt;curl: (6) Could not resolve host: shortName&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (6) Could not resolve host: COMPUTER_SCIENCE_400LVL,&lt;BR /&gt;curl: (6) Could not resolve host: fullName&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (6) Could not resolve host: COMPUTER_SCIENCE_400_LEVEL,&lt;BR /&gt;curl: (6) Could not resolve host: displayName&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (6) Could not resolve host: COMPUTER_SCIENCE_400LVL,&lt;BR /&gt;curl: (6) Could not resolve host: url&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (6) Could not resolve host: api&lt;BR /&gt;curl: (6) Could not resolve host: zones&lt;BR /&gt;curl: (6) Could not resolve host: &lt;BR /&gt;curl: (3) [globbing] bad range in column 2&lt;BR /&gt;curl: (3) [globbing] unmatched close brace/bracket in column 9&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/xhtml" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Web Script Status 405 - Method Not Allowed&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="/alfresco/css/webscripts.css" type="text/css" /&amp;gt;&lt;BR /&gt; &amp;lt;/head&amp;gt;&lt;BR /&gt; &amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;table&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;span class="title"&amp;gt;Web Script Status 405 - Method Not Allowed&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;br/&amp;gt;&lt;BR /&gt; &amp;lt;table&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;The Web Script &amp;lt;a href="%2Falfresco%2Fservice%2Fapi%2Fgroups"&amp;gt;/alfresco/service/api/groups&amp;lt;/a&amp;gt; has responded with a status of 405 - Method Not Allowed.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;br/&amp;gt;&lt;BR /&gt; &amp;lt;table&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;405 Description:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Message:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;03110002 Script url /api/groups does not support the method PUT&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Server&amp;lt;/b&amp;gt;:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Community v5.2.0 (re21f2be5-b22) schema 10,057&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Time&amp;lt;/b&amp;gt;:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Apr 11, 2018 10:50:37 AM&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Please tell me what i'm missing. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2018 10:03:20 GMT</pubDate>
    <dc:creator>justind</dc:creator>
    <dc:date>2018-04-11T10:03:20Z</dc:date>
    <item>
      <title>Creating a group using cURL with REST api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47584#M18687</link>
      <description>Please I'm new to Alfresco and I tried to create a group using curl on my command line terminal. Here's the code:curl -uadmin:rockstar -X PUT { "newGroup" : ["authorityType" : "GROUP", "shortName" : "COMPUTER_SCIENCE_400LVL", "fullName" : "COMPUTER_SCIENCE_400_LEVEL", "displayName" : "COMPUTER_SCIEN</description>
      <pubDate>Wed, 11 Apr 2018 10:03:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47584#M18687</guid>
      <dc:creator>justind</dc:creator>
      <dc:date>2018-04-11T10:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a group using cURL with REST api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47585#M18688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would have to put -d in front of your JSON Data and put the data in single quotes. I usually declare the content type -H 'Content-Type: application/json' so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;curl -uadmin:rockstar -H 'Content-Type: application/json' -X PUT -d '{ "newGroup" :.......}' ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;should do it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 13:33:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47585#M18688</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2018-04-12T13:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a group using cURL with REST api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47586#M18689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late reply, Thanks. This really helped!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 20:38:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-a-group-using-curl-with-rest-api/m-p/47586#M18689</guid>
      <dc:creator>justind</dc:creator>
      <dc:date>2018-04-17T20:38:39Z</dc:date>
    </item>
  </channel>
</rss>

