Updating IoTEntity Data REST

Wikis > LinkSmart.net > IoT Storage Manager > Updating IoTEntity Data REST

Adding data – POST to Collections

Posting a single element (IoTEntity, IoTProperty or IoTStateObservation) to the respective collection will result in a new element being added to the collection or, if the @about attribute identifies an already existing entity, updating the existing entity.




Setting data – The PUT method

To be implemented.

Posting an element (IoTEntity, IoTProperty or IoTStateObservation) to the URI identifying the resource will result in the resource being replaced with the contents of the posted representation. E.g., if previously existing IoTProperties in an IoTEntity are not included in the posted representation, these will be deleted from the IoTEntity. To add or merge data, use POST.


Removing data – The DELETE method

The DELETE method will remove the resource identified by the URI.