Removes specified tags from the list of tags associated with a thing

Params

Param name Description
tags
optional

Comma separated list of tags to be removed from the thing


Value: Must be a String
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean
is_oem
optional

Remove tag from thing of child account by oem user if is_oem flag is true.


Value: Must be a Boolean

Examples

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,automatic"}' https://api.datonis.io/api/v3/things/8955641a65/untag

Response (returns details of the thing with updated tags)
{
  "thing": {
    "bi_directional": true,
    "coordinates": [
      18.123,
      73.123
    ],
    "created_at": 1448363909,
    "description": "Thing for washing machines",
    "name": "Fully Automated Washing Machine",
    "state": null,
    "tags_array": [
      "Pune"
    ],
    "thing_key": "8955641a65",
    "updated_at": 1448432412,
    "user_defined_properties": {
      "Firmware Ver": "1.0",
      "STATE": "OK",
      "Installation Type": "Free Standing",
      "Manufacturer": "LG",
      "Color": "White"
    },
    "alive": false,
    "tags": "Pune",
    "last_event": null,
   ...