thing.controltag.add

The thing.controltag.add command is used to add control tag(s) to Thing(s).

TR50 Request

{
  "cmd": {
    "command": "thing.controltag.add",
    "params": {
      "thingKey":  ["thingkey1", "thingkey2"],
      "controlTags": ["controltag1", "controltag2"]
    }
  }
}

Request Parameters

Name Type Required Description
thingKey String or Array Yes* Identifies the Thing(s) that the control tags will be added to.
thingId String
thingTag String
thingQuery String
thingAll String
*One of the above parameters is required to identify the thing. If omitted, the thingKey associated with your session will be used.
controlTags Array Yes The array of control 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
  }
}