<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to UpdateOwner</title><link>https://sourceforge.net/p/m2mlabs/wiki/UpdateOwner/</link><description>Recent changes to UpdateOwner</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/UpdateOwner/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 22 Sep 2012 08:44:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/UpdateOwner/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage UpdateOwner modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/UpdateOwner/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -27,17 +27,8 @@
 
 ~~~~~~
 PUT http://localhost/cs-ws/resources/admin/owners/test6?apikey=1234 HTTP/1.1
-Accept-Encoding: gzip,deflate
-Content-Type: application/xml
-User-Agent: Jakarta Commons-HttpClient/3.1
-Host: localhost
-Content-Length: 84
 
 HTTP/1.1 200 OK
-Server: GlassFish Server Open Source Edition 3.1.2
-Content-Type: application/xml
-Content-Length: 174
-Date: Fri, 21 Sep 2012 19:51:20 GMT
 &lt;ownerEntity&gt;
    &lt;data&gt;
       &lt;apikey&gt;9999988&lt;/apikey&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 08:44:15 -0000</pubDate><guid>https://sourceforge.net7c0d0e609b494e2ba06e4f245e0d22f5f9f22091</guid></item><item><title>WikiPage UpdateOwner modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/UpdateOwner/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,4 @@
-### Modify owner ###
+### Update owner ###
 
 changes the apikey of an owner, id and name my not be changed, can only be executed with the admin apikey
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 07:58:28 -0000</pubDate><guid>https://sourceforge.netf0bdb860c49b09def227053159bc8111a83d9d9b</guid></item><item><title>WikiPage UpdateOwner modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/UpdateOwner/</link><description>### Modify owner ###

changes the apikey of an owner, id and name my not be changed, can only be executed with the admin apikey

Path: cs-ws/resources/admin/owners/{id}        Method: PUT

Parameters

* id
* apikey

PUT Data

~~~~~~
&lt;owner&gt;
   &lt;apikey&gt;...&lt;/apikey&gt;        new apikey for the owner 
   &lt;id&gt;...&lt;/id&gt;                has to be the same as the existing id
   &lt;name&gt;...&lt;/name&gt;            has to be the same as the existing name
&lt;/owner&gt;
~~~~~~

Errors:

* 401 UNAUTHORIZED if key is invalid or not admin key

Example

~~~~~~
PUT http://localhost/cs-ws/resources/admin/owners/test6?apikey=1234 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost
Content-Length: 84

HTTP/1.1 200 OK
Server: GlassFish Server Open Source Edition 3.1.2
Content-Type: application/xml
Content-Length: 174
Date: Fri, 21 Sep 2012 19:51:20 GMT
&lt;ownerEntity&gt;
   &lt;data&gt;
      &lt;apikey&gt;9999988&lt;/apikey&gt;
      &lt;id&gt;test6&lt;/id&gt;
      &lt;name&gt;test6&lt;/name&gt;
   &lt;/data&gt;
   &lt;success&gt;true&lt;/success&gt;
&lt;/ownerEntity&gt;
~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 07:58:10 -0000</pubDate><guid>https://sourceforge.net8cf53d20d61c3779587e7d0dad91c88c6e0b0fb1</guid></item></channel></rss>