Menu

UpdateEventModel

Jim

Update Event Model

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

  • apikey

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:

  • 401 UNAUTHORIZED if key is invalid or not admin key
  • 404 NOT FOUND if the event model in the post data is not existing

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


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.