GET api/asset/DefectHistory/{id}?startDate={startDate}&endDate={endDate}
Get an assets defect history
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The asset ID |
integer |
Required |
| startDate |
The start date range |
date |
Required |
| endDate |
The end date range |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Assets defect history for given date range
Collection of AssetDefect| Name | Description | Type | Additional information |
|---|---|---|---|
| DateTime |
Timestamp of the defect |
date |
None. |
| Vehicle |
Vehicle Name |
string |
None. |
| Driver |
Driver Name |
string |
None. |
| DefectDescription |
Defect Description |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"DateTime": "2025-11-05T08:05:54.2515046+00:00",
"Vehicle": "sample string 2",
"Driver": "sample string 3",
"DefectDescription": "sample string 4"
},
{
"DateTime": "2025-11-05T08:05:54.2515046+00:00",
"Vehicle": "sample string 2",
"Driver": "sample string 3",
"DefectDescription": "sample string 4"
}
]
application/xml, text/xml
Sample:
<ArrayOfAssetDefect xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AssetDefect>
<DateTime>2025-11-05T08:05:54.2515046+00:00</DateTime>
<Vehicle>sample string 2</Vehicle>
<Driver>sample string 3</Driver>
<DefectDescription>sample string 4</DefectDescription>
</AssetDefect>
<AssetDefect>
<DateTime>2025-11-05T08:05:54.2515046+00:00</DateTime>
<Vehicle>sample string 2</Vehicle>
<Driver>sample string 3</Driver>
<DefectDescription>sample string 4</DefectDescription>
</AssetDefect>
</ArrayOfAssetDefect>