thing.tag.add

The thing.tag.add command is used to add one or more tags to a thing.

TR50 Request


{
  "cmd": {
    "command": "thing.tag.add",
    "params": {
      "thingKey": "mything",
      "tags": ["tag1", "tag2"]
    }
  }
}
      

Request Parameters

Name

Type

Required

Description

thingKey

String or Array

 

Identifies the things that the tags will be added to. Defaults to the session's Thing.

tags

Array

Yes

The array of tags to be added to the thing.

TR50 Response

If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.


{
  "cmd": {
    "success": true
  }
}