Adds specified tags to an existing list of tags for a thing

Params

Param name Description
tags
optional

Comma separated list of tags to be added to 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

Add tag in 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 added
  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/tag

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",
      "Baner",
      "automatic"
    ],
    "thing_key": "8955641a65",
    "updated_at": 1448432329,
    "user_defined_properties": {
      "Firmware Ver": "1.0",
      "STATE": "OK",
      "Installation Type": "Free Standing",
      "Manufacturer": "LG",
      "Color": "White"
    },
    "alive": false,
    "tags":...