POST api/v1/alert/device

Request Information

URI Parameters

None.

Body Parameters

DeviceAlertRequest
NameDescriptionTypeAdditional information
vin

string

Required

timestamp

string

Required

latitude

decimal number

Required

Range: inclusive between -90 and 90

longitude

decimal number

Required

Range: inclusive between -180 and 180

deviceInfoList

Collection of DeviceInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "vin": "sample string 1",
  "timestamp": "sample string 2",
  "latitude": 1.1,
  "longitude": 1.1,
  "deviceInfoList": [
    {
      "deviceType": "sample string 1",
      "deviceStatusInfo": "sample string 2"
    },
    {
      "deviceType": "sample string 1",
      "deviceStatusInfo": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<DeviceAlertRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LDCM.MyServices.Models">
  <DeviceInfoList>
    <DeviceInfo>
      <DeviceStatusInfo>sample string 2</DeviceStatusInfo>
      <DeviceType>sample string 1</DeviceType>
    </DeviceInfo>
    <DeviceInfo>
      <DeviceStatusInfo>sample string 2</DeviceStatusInfo>
      <DeviceType>sample string 1</DeviceType>
    </DeviceInfo>
  </DeviceInfoList>
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <Timestamp>sample string 2</Timestamp>
  <Vin>sample string 1</Vin>
</DeviceAlertRequest>

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.