POST Api/GpsTracking/InsertLocationData
Request Information
URI Parameters
None.
Body Parameters
LocationRecordName | Description | Type | Additional information |
---|---|---|---|
IMEINo | string |
None. |
|
TimeStamp | date |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
CurrentLocation | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "IMEINo": "sample string 1", "TimeStamp": "2025-05-20T21:28:49.5720319+04:00", "Latitude": 3.1, "Longitude": 4.1, "CurrentLocation": "sample string 5" }
application/xml, text/xml
Sample:
<LocationRecord xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity"> <CurrentLocation>sample string 5</CurrentLocation> <IMEINo>sample string 1</IMEINo> <Latitude>3.1</Latitude> <Longitude>4.1</Longitude> <TimeStamp>2025-05-20T21:28:49.5720319+04:00</TimeStamp> </LocationRecord>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultName | Description | Type | Additional information |
---|---|---|---|
IsValid | boolean |
None. |
|
Message | Collection of string |
None. |
|
ResponseCodes | Collection of integer |
None. |
|
Id | globally unique identifier |
None. |
|
Value | string |
None. |
|
RecordOn | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsValid": true, "Message": [ "sample string 1", "sample string 2" ], "ResponseCodes": [ 1, 2 ], "Id": "cbb38a71-affe-4190-8488-7f6cd7dfa30b", "Value": "sample string 3", "RecordOn": "2025-05-20T21:28:49.5720319+04:00" }
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity"> <Id>cbb38a71-affe-4190-8488-7f6cd7dfa30b</Id> <IsValid>true</IsValid> <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Message> <RecordOn>2025-05-20T21:28:49.5720319+04:00</RecordOn> <ResponseCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </ResponseCodes> <Value>sample string 3</Value> </Result>