Update Asset Locations

The below API is used to update an asset's location. Locations are passed as an array.

Request: POST

Signature: /api/mobile/UpdateAssetLocation

Body:

[{

"AssetSerial": "123",

"Latitude": 12.3458,

"Longitude": 123.4567,

"LocTime": "2019-12-31T00:00:00"

}, {

"AssetSerial": "123",

"Latitude": 12.3458,

"Longitude": 123.4567,

"LocTime": "2019-12-31T00:10:00"

}, {

"AssetSerial": "1",

"Latitude": 12.3458,

"Longitude": 123.4567,

"LocTime": "2019-12-31T00:20:00"

}]

The following is the fields can also be added to the locations:

  • Address
  • Speed
  • Direction
  • Battery

Response:

{

"Code": 1,

"Info": "",

"RowsAffected": 1,

"Scalar": null,

"Identity": 507265,

"RetInfo": null

}