POST api/DirectLock/update-location

Request Information

URI Parameters

None.

Body Parameters

Device
NameDescriptionTypeAdditional information
Id

integer

None.

CustomerName

string

None.

Imei

string

None.

Imei2

string

None.

FcmToken

string

None.

LastSeen

date

None.

IsLocked

boolean

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

PhoneNumber1

string

None.

PhoneNumber2

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomerName": "sample string 2",
  "Imei": "sample string 3",
  "Imei2": "sample string 4",
  "FcmToken": "sample string 5",
  "LastSeen": "2025-07-21T07:00:30.4723204-04:00",
  "IsLocked": true,
  "Latitude": 1.0,
  "Longitude": 1.0,
  "PhoneNumber1": "sample string 7",
  "PhoneNumber2": "sample string 8"
}

application/xml, text/xml

Sample:
<Device xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/lockapi.Models">
  <CustomerName>sample string 2</CustomerName>
  <FcmToken>sample string 5</FcmToken>
  <Id>1</Id>
  <Imei>sample string 3</Imei>
  <Imei2>sample string 4</Imei2>
  <IsLocked>true</IsLocked>
  <LastSeen>2025-07-21T07:00:30.4723204-04:00</LastSeen>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <PhoneNumber1>sample string 7</PhoneNumber1>
  <PhoneNumber2>sample string 8</PhoneNumber2>
</Device>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.