POST api/DeviceData/InsertDeviceData
Request Information
URI Parameters
None.
Body Parameters
Root| Name | Description | Type | Additional information |
|---|---|---|---|
| DATA | Collection of DeviceDataModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"DATA": [
{
"CamaraId": "sample string 1",
"VehicleName": "sample string 2",
"latitude": 3.0,
"longitude": 4.0,
"Altitude": 5,
"Speed": 6,
"VendorCode": "sample string 7",
"DateTimeIST": "2026-04-24T19:28:53.8758035+05:30"
},
{
"CamaraId": "sample string 1",
"VehicleName": "sample string 2",
"latitude": 3.0,
"longitude": 4.0,
"Altitude": 5,
"Speed": 6,
"VendorCode": "sample string 7",
"DateTimeIST": "2026-04-24T19:28:53.8758035+05:30"
}
]
}
application/xml, text/xml
Sample:
<DeviceDataController.Root xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCS.API.Controllers">
<DATA xmlns:d2p1="http://schemas.datacontract.org/2004/07/LCS.Models">
<d2p1:DeviceDataModel>
<d2p1:Altitude>5</d2p1:Altitude>
<d2p1:CamaraId>sample string 1</d2p1:CamaraId>
<d2p1:DateTimeIST>2026-04-24T19:28:53.8758035+05:30</d2p1:DateTimeIST>
<d2p1:Speed>6</d2p1:Speed>
<d2p1:VehicleName>sample string 2</d2p1:VehicleName>
<d2p1:VendorCode>sample string 7</d2p1:VendorCode>
<d2p1:latitude>3</d2p1:latitude>
<d2p1:longitude>4</d2p1:longitude>
</d2p1:DeviceDataModel>
<d2p1:DeviceDataModel>
<d2p1:Altitude>5</d2p1:Altitude>
<d2p1:CamaraId>sample string 1</d2p1:CamaraId>
<d2p1:DateTimeIST>2026-04-24T19:28:53.8758035+05:30</d2p1:DateTimeIST>
<d2p1:Speed>6</d2p1:Speed>
<d2p1:VehicleName>sample string 2</d2p1:VehicleName>
<d2p1:VendorCode>sample string 7</d2p1:VendorCode>
<d2p1:latitude>3</d2p1:latitude>
<d2p1:longitude>4</d2p1:longitude>
</d2p1:DeviceDataModel>
</DATA>
</DeviceDataController.Root>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.