changes the event model in the domain of an owner identified by the apikey
the full event model is replaced, not a delta to the existing one
Path: cs-ws/resources/admin/eventmodel Method: PUT
Alternative: cs-ws/resources/admin/eventmodel/put Method: POST
Parameters
Data
<eventmodel> 1..n attributes containing name and datatype of the attribute <attribute> <name>...</name> <type>...</type> one of Number, Date, Boolean, Text, GpsData </attribute> </eventmodel>
Errors:
Example
~~~~~~
PUT http://localhost/cs-ws/resources/admin/eventmodel?apikey=1234 HTTP/1.1
<eventmodel>
<attribute>
<name>EvAttr1</name>
<type>Number</type>
</attribute>
<attribute>
<name>EvAttr2</name>
<type>Number</type>
</attribute>
<name>EvModel1</name>
</eventmodel>
HTTP/1.1