Add or update a metadata
This service allows you to add or update custom metadata to a user, such as driving indicators that have been calculated in your backend.
You can add as many metadata as you need in a key-value format.
Metadata can be synchronized in the mobile application and displayed to the user.
Add or update metadata to a driver
Drivekit Admin API key
Key/value pairs in String format
PUT /v3/drivekit/admin/drivers/{userId}/metadata HTTP/1.1
Host: develop.drivequant.com
DriveKit-Admin-API-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"metaData": {
"annualSafetyScore": "8.9",
"monthlyCustomScore": "9.8"
}
}
{
"metaData": {
"annualSafetyScore": "8.9",
"monthlyCustomScore": "9.8"
}
}
Use case: custom scores
Custom scores can be calculated over a specific period of time (policy year, calendar year, 12 months rolling period...) using the individual scores of the trips made during this period, or using timelines.
If a customer has calculated one (or more) custom score(s) for a driver, this service can be used to attach this metadata to the driver. These scores can then be displayed to the user in the mobile app, and can be linked to a reward or a discount on an insurance premium.
Scores can be added one at a time or, more effectively, all at once:
{
"metaData" : {
"annualSafetyScore" : "8.9"
}
}
Last updated
Was this helpful?