property.delete

The property.delete command is used to delete a property.

TR50 Request


                        // Delete a specific property entry
{
  "1": {
    "command": "property.delete",
    "params": {
      "id": "56152afb681fdc0cd8052d6e"
    }
  }
}
 
// Delete a group of property entries
{
  "1": {
    "command": "property.delete",
    "params": {
      "thingKey": "56152afb681fdc0cd8052d6e",
      "key": "myProperty",
      "startTs": "2017-02-10T09:00:00.000Z",
      "endTs": "2017-02-10T10:00:00.000Z"
    }
  }
}
      

Request Parameters

Delete a specific property entry.

Name

Type

Required

Description

id

String

Yes

The ID of the property to delete.

Delete a group of property entries.

Name

Type

Required

Description

thingKey

String

Yes

The thing key.

key

String

Yes

The property key.

startTs

String

Yes

The starting timestamp of the date range to delete.

endTs

String

Yes

The ending timestamp of the date range to delete.

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
  }
}