Adds specified tags to an existing list of tags for a sensor
Param name | Description |
---|---|
tags optional |
Comma separated list of tags to be added to the sensor Value: Must be a String |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request - containing the list of tags to be added curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" -d '{"tags":"Baner,3-wire"}' https://api.datonis.io/api/v2/sensors/16dc891e4b255735d7tafete13e6fdc412628t84/tag Response (returns details of the sensor with updated tags) { "sensor": { "bi_directional": false, "coordinates": [ "18.5203", "73.8567" ], "description": "", "sensor_key": "16dc891e4b255735d7tafete13e6fdc412628t84", "type": "Energy Meter", "meta_data": { "properties": { "voltage": { "type": "number" }, "power": { "type": "number" } }, "additionalProperties": false }, "name": "EM-100", "state": "registered", "tags_array": [ "1-Phase", "15-Amps", "Pune", "Baner", "3-wire" ], "traits": { ...