changes the sensor model in the domain of an owner identified by the apikey
the full sensor model is replaced, not a delta to the existing one
Path: cs-ws/resources/admin/sensormodel Method: PUT
Alternative: cs-ws/resources/admin/sensormodel/put Method: POST
Parameters
Data
<sensormodel>
1..n attributes containing name and datatype of the attribute
<attribute>
<name>...</name>
<type>...</type> one of Number, Date, Boolean, Text, GpsData
</attribute>
...
1..n configuration parameters containing a display name and an internal name
values are assigned when a sensor based on the sensor model is created
<config>
<displayname>...</displayname>
<name>...</name>
</config>
...
<name>...</name>
</sensormodel>
Errors:
Example
PUT http://localhost/cs-ws/resources/admin/sensormodel?apikey=1234 HTTP/1.1
<sensormodel>
<attribute>
<name>Temperature</name>
<type>Number</type>
</attribute>
<config>
<displayname>Unit</displayname>
<name>unit</name>
</config>
<name>SensorModel</name>
</sensormodel>
HTTP/1.1 200 OK