Get details of an thing template

Params

Param name Description
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean

Examples

Request
  curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:olezAZXGQn9MutnfNerKDQ"  https://api.datonis.io/api/v3/thing_templates/2a5t58bbt8

Response (containing details of the thing template)
{
  "thing_template": {
    "created_at": 1448361986,
    "description": "Template for Refrigerators",
    "name": "Refrigerator",
    "thing_template_key": "2a5t58bbt8",
    "updated_at": 1448361986,
    "user_defined_properties": {
      "Firmware Ver": "1.0",
      "STATE": "OK"
    },
    "metrics": [
      {
        "metric_key": "d3tdc136b3",
        "metric_name": "temperature"
      },
      {
        "metric_key": "b44c32be53",
        "metric_name": "power"
      },
      {
        "metric_key": "c6a86c8576",
        "metric_name": "voltage"
      }
    ]
  }
}