Updates an thing template with given parameters
Param name | Description |
---|---|
thing_template required |
Map containing details of the thing template to be updated Value: Must be a Hash |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
is_oem optional |
Update thing template in child account by oem user if is_oem flag is true. Value: Must be a Boolean |
Request curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:olezAZXGQn9MutnfNerKDQ" -d '{"thing_template":{"description":"Thing Template for Refrigerators"}}' https://api.datonis.io/api/v3/thing_templates/2a5t58bbt8 Response (containing details of the thing template updated) { "thing_template": { "created_at": 1448361986, "description": "Thing Template for Refrigerators", "name": "Refrigerator", "thing_template_key": "2a5t58bbt8", "updated_at": 1448366573, "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" } ] } }