location.delete

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

TR50 Request


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

Request Parameters

Delete a specific location entry.

Name

Type

Required

Description

id

String

Yes

The ID of the location to delete.

Delete a group of location entries.

Name

Type

Required

Description

thingKey

String

 Yes

The thing key.

startTs

String

 Yes

The starting timestamp for the date range to delete.

endTs

String

 Yes

The ending timestamp for 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
  }
}