FleetUp API Docs
  1. Maintenance
FleetUp API Docs
  • Quick Start
    • Your First API Call
    • Token Expiration
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Authentication
      • /token
      • Obtain JWT Token
    • Account & User & Device
      • /account-info
      • /users
      • /drivers/list
      • /devices
      • /devices/status
      • /devices/unlock
      • /devices/driver-overview
      • /devices/engine-hours
      • /devices/fuel-level
      • /devices/odometer
      • /devices/latest-ecu-data
      • /devices/{device-id}
      • /devices/{device-type}
      • /devices/{device-type}/details
      • /devices/{device-type}/history
    • Trips
      • /trips/history
      • /trips/ongoing-trips
    • Trip Share
      • /tripshare/live-eta
      • /tripshare/partners
      • /tripshare/share
    • Alerts
      • /alerts/summary
      • /alerts/history
      • /alerts/bulk-history
      • /fencealerts/fence-names
      • /fencealerts/geo-fencealerts
    • Location
      • Retrieve GPS data within a 24-hour time range
      • /gpsdata/device-last-location
      • /gpsdata/latest
      • /gpsdata/latest/4cj
      • /gpsdata/latest/5ta
      • /bulk-gpsdata
    • Maintenance
      • /maintenance/history
        POST
      • /maintenance/indicators
        POST
      • /maintenance/settings/indicators
        GET
      • /maintenance/settings/measurements
        GET
    • Reports
      • /reports/temperature-sensors
      • /reports/{report-key}
    • Geofence
      • Get all fences
      • Get fence detail
      • Retrieve geofence alerts
    • Others
      • /jobs
  • API Guides
    • Retrieve All Devices from an Enterprise
  1. Maintenance

/maintenance/history

POST
/maintenance/history
Get the historical records of maintenance done for the device requested.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Header Params
token
string 
required
Body Params application/json
devId
string 
required
Device ID
>= 5 characters<= 50 characters
Example
{
    "devId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/maintenance/history' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "devId": "string"
}'

Responses

🟢200成功
application/json
200 response
Body
status
number 
optional
response status (http status)
data
array [object {7}] 
optional
itemNo
number 
optional
Indicator item number (Sr.no -1,2,3)
itemName
string 
optional
Indicator item name
value
number 
optional
Value of indicator at time the maintenance has been done
threshold
number 
optional
Indicator threshold value
cost
number 
optional
Cost of the maintenance
remark
string 
optional
Remark
date
string 
optional
Date when maintenance has been done in yyyyMMdd
Example
{
    "status": 0,
    "data": [
        {
            "itemNo": 0,
            "itemName": "string",
            "value": 0,
            "threshold": 0,
            "cost": 0,
            "remark": "string",
            "date": "string"
        }
    ]
}
Modified at 2025-02-28 08:12:14
Previous
/bulk-gpsdata
Next
/maintenance/indicators
Built with