<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to CreateSingleCommand</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSingleCommand/</link><description>Recent changes to CreateSingleCommand</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/CreateSingleCommand/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 03 Jan 2018 21:55:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/CreateSingleCommand/feed" rel="self" type="application/rss+xml"/><item><title>CreateSingleCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSingleCommand/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,4 +1,4 @@
-### Create new Command ###
+### Create Single new Command ###

 Creates a new command in the domain of the owner identified by the apikey.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Wed, 03 Jan 2018 21:55:44 -0000</pubDate><guid>https://sourceforge.net9de0fd2052e2a0cf63d8581b68d040346c683613</guid></item><item><title>CreateCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateCommand/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -42,7 +42,8 @@
    &amp;lt;name&amp;gt;TempDev2&amp;lt;/name&amp;gt;
    &amp;lt;actor&amp;gt;Valve1&amp;lt;/actor&amp;gt;
    &amp;lt;id&amp;gt;6&amp;lt;/id&amp;gt;
-   &amp;lt;activation_time&amp;gt;2012-08-31 19:55:54.036&amp;lt;/activation_time&amp;gt;
+   &amp;lt;activation_time&amp;gt;2017-08-31 19:55:54.036&amp;lt;/activation_time&amp;gt;
+   &amp;lt;execution_time&amp;gt;1970-01-01 00:00:00.000&amp;lt;/execution_time&amp;gt;
    &amp;lt;parameter&amp;gt;
       &amp;lt;name&amp;gt;WaterValve&amp;lt;/name&amp;gt;
       &amp;lt;value&amp;gt;2.0&amp;lt;/value&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Wed, 03 Jan 2018 21:50:28 -0000</pubDate><guid>https://sourceforge.net7b37ff8871ba26e53fe5acc0d05cc8c7ca2668db</guid></item><item><title>CreateCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateCommand/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -19,6 +19,9 @@
    &amp;lt;activation_time&amp;gt;...&amp;lt;/activation_time&amp;gt;  
        time when command should be executed as yyyy-mm-dd hh:mm:ss.SSS
        it is guaranteed that command is not sent before activation time
+   &amp;lt;execution_time&amp;gt;...&amp;lt;/execution_time&amp;gt;
+       time when command was actually executed
+       should be set to 1970-01-01 00:00:00.000 in command creation
    &amp;lt;parameter&amp;gt;                             parameters as defined in actor model
        &amp;lt;name&amp;gt;...&amp;lt;/name&amp;gt;
        &amp;lt;value&amp;gt;...&amp;lt;/value&amp;gt;
@@ -34,7 +37,7 @@
 Example

 ~~~~~~
-POST http://localhost/cs-ws/resources/admin/command/?apikey=1234 HTTP/1.1
+POST http://localhost/cs-ws/resources/admin/command?apikey=1234 HTTP/1.1
 &lt;command&gt;&lt;/command&gt;
    &amp;lt;name&amp;gt;TempDev2&amp;lt;/name&amp;gt;
    &amp;lt;actor&amp;gt;Valve1&amp;lt;/actor&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Wed, 03 Jan 2018 21:48:56 -0000</pubDate><guid>https://sourceforge.net8598f1a5e095e3634361c62ead6504c80124f861</guid></item><item><title>WikiPage CreateCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateCommand/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -22,7 +22,7 @@
    &lt;parameter&gt;                             parameters as defined in actor model
        &lt;name&gt;...&lt;/name&gt;
        &lt;value&gt;...&lt;/value&gt;
-    &lt;/parameter&gt;
+   &lt;/parameter&gt;
 &lt;/command&gt;
 ~~~~~~
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 23 Sep 2012 09:57:02 -0000</pubDate><guid>https://sourceforge.net9996152f7a0d0be802edf511b452efd3ede04f05</guid></item><item><title>WikiPage CreateCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateCommand/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -15,6 +15,7 @@
    &lt;name&gt;...&lt;/name&gt;                        device name
    &lt;actor&gt;...&lt;/actor&gt;                      actor name
    &lt;id&gt;...&lt;/id&gt;                            unique number
+   &lt;status&gt;...&lt;/status&gt;                    optional, if not given set to New
    &lt;activation_time&gt;...&lt;/activation_time&gt;  
        time when command should be executed as yyyy-mm-dd hh:mm:ss.SSS
        it is guaranteed that command is not sent before activation time
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 23 Sep 2012 09:52:33 -0000</pubDate><guid>https://sourceforge.net57c5376651f86dceb34e422cc2426751dc66955e</guid></item><item><title>WikiPage CreateCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateCommand/</link><description>### Create new Command ###

Creates a new command in the domain of the owner identified by the apikey.

Path: cs-ws/resources/admin/command        Method: POST

Parameters

* apikey

Data

~~~~~~
&lt;command&gt;
   &lt;name&gt;...&lt;/name&gt;                        device name
   &lt;actor&gt;...&lt;/actor&gt;                      actor name
   &lt;id&gt;...&lt;/id&gt;                            unique number
   &lt;activation_time&gt;...&lt;/activation_time&gt;  
       time when command should be executed as yyyy-mm-dd hh:mm:ss.SSS
       it is guaranteed that command is not sent before activation time
   &lt;parameter&gt;                             parameters as defined in actor model
       &lt;name&gt;...&lt;/name&gt;
       &lt;value&gt;...&lt;/value&gt;
    &lt;/parameter&gt;
&lt;/command&gt;
~~~~~~

Errors:

* 401 UNAUTHORIZED if key is invalid or not admin key
* 409 CONFLICT if command already exists

Example

~~~~~~
POST http://localhost/cs-ws/resources/admin/command/?apikey=1234 HTTP/1.1
&lt;command&gt;
   &lt;name&gt;TempDev2&lt;/name&gt;
   &lt;actor&gt;Valve1&lt;/actor&gt;
   &lt;id&gt;6&lt;/id&gt;
   &lt;activation_time&gt;2012-08-31 19:55:54.036&lt;/activation_time&gt;
   &lt;parameter&gt;
      &lt;name&gt;WaterValve&lt;/name&gt;
      &lt;value&gt;2.0&lt;/value&gt;
   &lt;/parameter&gt;
&lt;/command&gt;

HTTP/1.1 200 OK
~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 23 Sep 2012 09:41:00 -0000</pubDate><guid>https://sourceforge.net28da0861554bdb5352604631d07f772ddca745c6</guid></item></channel></rss>