Removes specified tags from the list of tags associated with a sensor
Param name | Description |
---|---|
tags optional |
Comma separated list of tags to be removed from 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 removed 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/untag 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" ], "traits": { }, "unit_of_measure": null, ...