Get details of an thing template
Param name | Description |
---|---|
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
is_oem optional |
Show thing template of child account if is_oem flag is true. Value: Must be one of: <code>true</code>, <code>false</code>, <code>true</code>, <code>false</code>. |
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" } ] } }