Updates a thing with given parameters

Params

Param name Description
thing
required

Object containing information about the thing 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

Examples

Request - containing parameters to be modified
  curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" -d '{"thing":{"tags":"Pune","coordinates":[18.123,73.123]}}' https://api.datonis.io/api/v3/things/8955641a65

Response (returns details of the thing updated)
{
  "thing": {
    "bi_directional": true,
    "coordinates": [
      18.123,
      73.123
    ],
    "created_at": 1448363909,
    "description": "Thing for washing machines",
    "name": "Fully Automated Washing Machine",
    "state": null,
    "tags_array": [
      "Pune"
    ],
    "thing_key": "8955641a65",
    "updated_at": 1448432116,
    "user_defined_properties": {
      "Firmware Ver": "1.0",
      "STATE": "OK",
      "Installation Type": "Free Standing",
      "Manufacturer": "LG",
      "Color": "White"
    },
    "alive": false,
    "tags": "Pune",
    "last_event": null,
    "last_beat": null,
    "thing_template_name": "Washing Machine",
    "thing_template_key": "af31ae5fb2"
  }
}