<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to CreateDeviceGroup</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/</link><description>Recent changes to CreateDeviceGroup</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 04 Jan 2018 09:49:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/feed" rel="self" type="application/rss+xml"/><item><title>CreateDeviceGroup modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,25 +1,21 @@
 ### Create new Device Group ###

-Creates one or more new device groups in the domain of the owner identified by the apikey. A device my be part of several groups and it is possible to add not yet existing devices to a group.
+Creates a new device groups in the domain of the owner identified by the apikey. A device my be part of several groups and it is possible to add not yet existing devices to a group.

 Path: cs-ws/resources/admin/devicegroup        Method: POST

 Parameters

 * apikey
+* overwrite true|false ... allows to overwrite existing groups

 Data

 ~~~~~~
-&amp;lt;devicegroups&amp;gt;
-    &amp;lt;devicegroup name="..."&amp;gt;
-        &amp;lt;device_name&amp;gt;...&amp;lt;/device_name&amp;gt;
-        &amp;lt;device_name&amp;gt;...&amp;lt;/device_name&amp;gt;
-    &amp;lt;/devicegroup&amp;gt;
-    &amp;lt;devicegroup name="..."&amp;gt;
-        ...
-    &amp;lt;/devicegroup&amp;gt;
-&amp;lt;/devicegroups&amp;gt;
+&amp;lt;devicegroup name="..."&amp;gt;
+    &amp;lt;device_name&amp;gt;...&amp;lt;/device_name&amp;gt;
+    &amp;lt;device_name&amp;gt;...&amp;lt;/device_name&amp;gt;
+&amp;lt;/devicegroup&amp;gt;
 ~~~~~~

 Errors:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 04 Jan 2018 09:49:15 -0000</pubDate><guid>https://sourceforge.net5dd8d984ebdab337fe8d2b96569b1e386c7abb09</guid></item><item><title>CreateDeviceGroup modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,6 +1,6 @@
 ### Create new Device Group ###

-Creates one or more new device groups in the domain of the owner identified by the apikey. This service is called either by an admin application or by the device to create itself in the platform. A device my be part of several groups and it is possible to add not yet existing devices to a group.
+Creates one or more new device groups in the domain of the owner identified by the apikey. A device my be part of several groups and it is possible to add not yet existing devices to a group.

 Path: cs-ws/resources/admin/devicegroup        Method: POST

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 04 Jan 2018 09:28:54 -0000</pubDate><guid>https://sourceforge.netec5c78be2c8c8d000752bb5c5d62d262cd2bc4d0</guid></item><item><title>CreateDeviceGroup modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,6 @@
 ### Create new Device Group ###

-Creates one or more new device groups in the domain of the owner identified by the apikey. This service is called either by an admin application or by the device to create itself in the platform.
+Creates one or more new device groups in the domain of the owner identified by the apikey. This service is called either by an admin application or by the device to create itself in the platform. A device my be part of several groups and it is possible to add not yet existing devices to a group.

 Path: cs-ws/resources/admin/devicegroup        Method: POST

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 04 Jan 2018 09:15:47 -0000</pubDate><guid>https://sourceforge.nete3778c4e842484b7d505760561787abe1c8cb978</guid></item><item><title>CreateDeviceGroup modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateDeviceGroup/</link><description>&lt;div class="markdown_content"&gt;&lt;h3 id="create-new-device-group"&gt;Create new Device Group&lt;/h3&gt;
&lt;p&gt;Creates one or more new device groups in the domain of the owner identified by the apikey. This service is called either by an admin application or by the device to create itself in the platform.&lt;/p&gt;
&lt;p&gt;Path: cs-ws/resources/admin/devicegroup        Method: POST&lt;/p&gt;
&lt;p&gt;Parameters&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;apikey&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Data&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;devicegroups&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;devicegroup&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"..."&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;device_name&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/device_name&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;device_name&amp;gt;&lt;/span&gt;...&lt;span class="nt"&gt;&amp;lt;/device_name&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/devicegroup&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;devicegroup&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"..."&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        ...
    &lt;span class="nt"&gt;&amp;lt;/devicegroup&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/devicegroups&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Errors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;401 UNAUTHORIZED if key is invalid or not admin key&lt;/li&gt;
&lt;li&gt;409 CONFLICT if devicegroup already exists&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;POST http://localhost/cs-ws/resources/admin/devicegroup?apikey=1234 HTTP/1.1
&lt;span class="nt"&gt;&amp;lt;devicegroups&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;devicegroup&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"DevGroup1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;device_name&amp;gt;&lt;/span&gt;D1&lt;span class="nt"&gt;&amp;lt;/device_name&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;device_name&amp;gt;&lt;/span&gt;D3&lt;span class="nt"&gt;&amp;lt;/device_name&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/devicegroup&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/devicegroups&amp;gt;&lt;/span&gt;

HTTP/1.1 200 OK
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 04 Jan 2018 09:13:42 -0000</pubDate><guid>https://sourceforge.net7b94499a494e78734188a5563e10b1dcac1982c2</guid></item></channel></rss>