POST v1/Assets
Posts the asset.
Request Information
URI Parameters
None.
Body Parameters
The value.
Lhp.EquipmentIntelligence.WebApi.Models.V1.AssetModelName | Description | Type | Additional information |
---|---|---|---|
AssetId |
Unique ID of the Asset |
integer |
None. |
TcuId |
Unique ID of the TCU attached to the Asset |
integer |
None. |
OwnerCustomerId |
ID of the Customer that owns the asset |
integer |
None. |
OemEquipmentModelId |
ID of the equipment model of the asset |
integer |
None. |
Name |
Name of the asset |
string |
None. |
Make |
Make of the asset |
string |
None. |
Model |
Model of the asset |
string |
None. |
Year |
Model year of the asset |
string |
None. |
SerialNumber |
Serial number identifier for the asset |
string |
None. |
Vin |
Vehicle identification number of the asset. |
string |
None. |
IsExternalAsset |
When true indicates that the asset is managed by an external system. |
boolean |
None. |
UniqueExternalId |
Unique identifier used by the external system. |
string |
None. |
LastPositionLog |
Position information for the asset. |
Lhp.EquipmentIntelligence.WebApi.Models.V1.PositionLogModel |
None. |
LastReportedOnTimeStamp |
Timestamp of the last time a report was received from the asset. This is the time of report delivery. |
date |
None. |
LastReceivedReportTimeStamp |
Timestamp of the last report received from the asset. This is the time of the event recorded by the device. |
date |
None. |
Request Formats
application/json, text/json
{ "AssetId": 1, "TcuId": 1, "OwnerCustomerId": 2, "OemEquipmentModelId": 1, "Name": "sample string 3", "Make": "sample string 4", "Model": "sample string 5", "Year": "sample string 6", "SerialNumber": "sample string 7", "Vin": "sample string 8", "IsExternalAsset": true, "UniqueExternalId": "sample string 10", "LastPositionLog": { "Latitude": 1.1, "Longitude": 1.1 }, "LastReportedOnTimeStamp": "2024-09-07T17:52:20.6370795+00:00", "LastReceivedReportTimeStamp": "2024-09-07T17:52:20.6370795+00:00" }
application/xml, text/xml
<AssetModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AssetId>1</AssetId> <TcuId>1</TcuId> <OwnerCustomerId>2</OwnerCustomerId> <OemEquipmentModelId>1</OemEquipmentModelId> <Name>sample string 3</Name> <Make>sample string 4</Make> <Model>sample string 5</Model> <Year>sample string 6</Year> <SerialNumber>sample string 7</SerialNumber> <Vin>sample string 8</Vin> <IsExternalAsset>true</IsExternalAsset> <UniqueExternalId>sample string 10</UniqueExternalId> <LastPositionLog> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> </LastPositionLog> <LastReportedOnTimeStamp>2024-09-07T17:52:20.6370795+00:00</LastReportedOnTimeStamp> <LastReceivedReportTimeStamp>2024-09-07T17:52:20.6370795+00:00</LastReceivedReportTimeStamp> </AssetModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional 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. |