Update vehicle mileage

Once a vehicle is declared, the distances of all trips are aggregated to calculate the total analyzed distance.

If the vehicle has already been driven before it is been registered on the platform, there will be an offset between the vehicle odometer and the total analyzed distance (computed by DriveQuant services).

If you find an offset between the vehicle's odometer and the total analyzed distance, you can set vehicle mileage.

The vehicle mileage value is updated :

  1. Every time a trip is analyzed.

  2. Each time the odometer update API is used.

If you have your admin API key, you can try the API via this link.

put
Vehicle mileage update

https://service.drivequant.com/v3/drivekit/admin/vehicles/{vehicleId}/distance
Update the vehicle mileage unsing the vehicle unique identifier.
Request
Response
Request
Path Parameters
vehicleId
required
string
Vehicle unique identifier
Headers
DriveKit-Admin-API-Key
required
string
Admin API Key
Body Parameters
distance
required
number
Vehicle odometer reading in kilometer
Response
200: OK
{
"analyzedDistance": 4589,
"creationDate": "2020-01-10T10:00:00.125+0200",
"distance": 10052,
"offsetDistance": 5463
}
404: Not Found
Not Found
422: Unprocessable Entity
Unprocessable Entity