POST v1/AssetReports

Submits a pre-defined report

Request Information

URI Parameters

None.

Body Parameters

The report to submit

Lhp.EquipmentIntelligence.WebApi.Client.Models.AssetReport
NameDescriptionTypeAdditional information
ReportId

Gets or sets the report definition identifier.

integer

None.

AssetId

Gets or sets the asset identifier.

integer

None.

TcuId

Gets or sets the TCU identifier.

integer

None.

AssetReportId

Gets or sets the asset report identifier.

integer

None.

TimeStampUtc

The date and time of the report snapshot in UTC

date

None.

TimeStampIsEstimated

Gets or sets a value indicating whether the time stamp is estimated.

boolean

None.

Location

The location of the asset

Lhp.EquipmentIntelligence.WebApi.Client.Models.PositionLog

None.

AssetReportLocationId

Gets or sets the asset report location identifier.

integer

None.

DataPoints

The data point readings

Collection of Lhp.EquipmentIntelligence.WebApi.Client.Models.AssetReportDataElement

None.

Request Formats

application/json, text/json

Sample:
{
  "ReportId": 1,
  "AssetId": 1,
  "TcuId": 1,
  "AssetReportId": 2,
  "TimeStampUtc": "2024-09-07T17:51:46.3004046+00:00",
  "TimeStampIsEstimated": true,
  "Location": {
    "Latitude": 1.1,
    "Longitude": 2.1,
    "Altitude": 1,
    "Heading": 1,
    "AssetId": 1,
    "TcuId": 1,
    "GpsFixIsCurrent": true,
    "GpsSatellites": 1,
    "GpsSpeed": 1,
    "AssetReportLocationId": 3,
    "TimeStamp": "2024-09-07T17:51:46.3004046+00:00",
    "TimeStampIsEstimated": true
  },
  "AssetReportLocationId": 1,
  "DataPoints": [
    {
      "AssetReportDataElementId": 1,
      "AssetReportId": 2,
      "DataElementId": 3,
      "RawValue": "sample string 4",
      "ParsedValue": "sample string 5",
      "TimeStamp": "2024-09-07T17:51:46.3004046+00:00",
      "IsRolledUp": true
    },
    {
      "AssetReportDataElementId": 1,
      "AssetReportId": 2,
      "DataElementId": 3,
      "RawValue": "sample string 4",
      "ParsedValue": "sample string 5",
      "TimeStamp": "2024-09-07T17:51:46.3004046+00:00",
      "IsRolledUp": true
    }
  ]
}

application/xml, text/xml

Sample:
<AssetReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ReportId>1</ReportId>
  <AssetId>1</AssetId>
  <TcuId>1</TcuId>
  <AssetReportId>2</AssetReportId>
  <TimeStampUtc>2024-09-07T17:51:46.3004046+00:00</TimeStampUtc>
  <TimeStampIsEstimated>true</TimeStampIsEstimated>
  <Location>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
    <Altitude>1</Altitude>
    <Heading>1</Heading>
    <AssetId>1</AssetId>
    <TcuId>1</TcuId>
    <GpsFixIsCurrent>true</GpsFixIsCurrent>
    <GpsSatellites>1</GpsSatellites>
    <GpsSpeed>1</GpsSpeed>
    <AssetReportLocationId>3</AssetReportLocationId>
    <TimeStamp>2024-09-07T17:51:46.3004046+00:00</TimeStamp>
    <TimeStampIsEstimated>true</TimeStampIsEstimated>
  </Location>
  <AssetReportLocationId>1</AssetReportLocationId>
  <DataPoints>
    <AssetReportDataElement>
      <AssetReportDataElementId>1</AssetReportDataElementId>
      <AssetReportId>2</AssetReportId>
      <DataElementId>3</DataElementId>
      <RawValue>sample string 4</RawValue>
      <ParsedValue>sample string 5</ParsedValue>
      <TimeStamp>2024-09-07T17:51:46.3004046+00:00</TimeStamp>
      <IsRolledUp>true</IsRolledUp>
    </AssetReportDataElement>
    <AssetReportDataElement>
      <AssetReportDataElementId>1</AssetReportDataElementId>
      <AssetReportId>2</AssetReportId>
      <DataElementId>3</DataElementId>
      <RawValue>sample string 4</RawValue>
      <ParsedValue>sample string 5</ParsedValue>
      <TimeStamp>2024-09-07T17:51:46.3004046+00:00</TimeStamp>
      <IsRolledUp>true</IsRolledUp>
    </AssetReportDataElement>
  </DataPoints>
</AssetReport>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.