GET Device/{id}/Maintenance
Get all Maintenances.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A enumeration of MaintenanceRestItem objects.
MaintenanceRestResultName | Description | Type | Additional information |
---|---|---|---|
RestItems |
Collection of RestItems objects. |
Collection of MaintenanceRestItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "RestItems": [ { "MaintenanceType": "sample string 1", "NextMaintenanceOdo": 1, "LastMaintenanceDate": "2025-01-05T02:46:27.2346319+01:00", "LastMaintenanceOdo": 1, "AvgKmPerDay": 1, "KmThreshold": 1, "HoursThreshold": 1, "DaysThreshold": 1, "HoursWorked": 1, "AvgHoursWorked": 1, "DaysRemaining": 1, "KmRemaining": 1, "HoursRemaining": 1, "Remarks": "sample string 2", "Projectname": "sample string 3", "Id": 1, "AssetId": 1, "ExpectedMaintenanceDate": "2025-01-05T02:46:27.2346319+01:00", "CurrentOdoValue": 1 }, { "MaintenanceType": "sample string 1", "NextMaintenanceOdo": 1, "LastMaintenanceDate": "2025-01-05T02:46:27.2346319+01:00", "LastMaintenanceOdo": 1, "AvgKmPerDay": 1, "KmThreshold": 1, "HoursThreshold": 1, "DaysThreshold": 1, "HoursWorked": 1, "AvgHoursWorked": 1, "DaysRemaining": 1, "KmRemaining": 1, "HoursRemaining": 1, "Remarks": "sample string 2", "Projectname": "sample string 3", "Id": 1, "AssetId": 1, "ExpectedMaintenanceDate": "2025-01-05T02:46:27.2346319+01:00", "CurrentOdoValue": 1 } ] }
application/xml, text/xml
Sample:
<MaintenanceRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models"> <RestItems> <MaintenanceRestItem> <AssetId>1</AssetId> <AvgHoursWorked>1</AvgHoursWorked> <AvgKmPerDay>1</AvgKmPerDay> <CurrentOdoValue>1</CurrentOdoValue> <DaysRemaining>1</DaysRemaining> <DaysThreshold>1</DaysThreshold> <ExpectedMaintenanceDate>2025-01-05T02:46:27.2346319+01:00</ExpectedMaintenanceDate> <HoursRemaining>1</HoursRemaining> <HoursThreshold>1</HoursThreshold> <HoursWorked>1</HoursWorked> <Id>1</Id> <KmRemaining>1</KmRemaining> <KmThreshold>1</KmThreshold> <LastMaintenanceDate>2025-01-05T02:46:27.2346319+01:00</LastMaintenanceDate> <LastMaintenanceOdo>1</LastMaintenanceOdo> <MaintenanceType>sample string 1</MaintenanceType> <NextMaintenanceOdo>1</NextMaintenanceOdo> <Projectname>sample string 3</Projectname> <Remarks>sample string 2</Remarks> </MaintenanceRestItem> <MaintenanceRestItem> <AssetId>1</AssetId> <AvgHoursWorked>1</AvgHoursWorked> <AvgKmPerDay>1</AvgKmPerDay> <CurrentOdoValue>1</CurrentOdoValue> <DaysRemaining>1</DaysRemaining> <DaysThreshold>1</DaysThreshold> <ExpectedMaintenanceDate>2025-01-05T02:46:27.2346319+01:00</ExpectedMaintenanceDate> <HoursRemaining>1</HoursRemaining> <HoursThreshold>1</HoursThreshold> <HoursWorked>1</HoursWorked> <Id>1</Id> <KmRemaining>1</KmRemaining> <KmThreshold>1</KmThreshold> <LastMaintenanceDate>2025-01-05T02:46:27.2346319+01:00</LastMaintenanceDate> <LastMaintenanceOdo>1</LastMaintenanceOdo> <MaintenanceType>sample string 1</MaintenanceType> <NextMaintenanceOdo>1</NextMaintenanceOdo> <Projectname>sample string 3</Projectname> <Remarks>sample string 2</Remarks> </MaintenanceRestItem> </RestItems> </MaintenanceRestResult>