Create

This API must be used to create a new vehicle that will belong to your organization. After the vehicle is created, you can add the vehicleId in the trip API request to get the trip scores and data described in the trip analysis section.

We recommend to add a vehicle before requesting the trip analysis service if you need to monitor the vehicle. For each request, the unique vehicle identifier must be added in the trip analysis request.

circle-info

If you have your admin API key, you can try the API via this linkarrow-up-right.

Create a vehicle

post
Authorizations
DriveKit-Admin-API-KeystringRequired
Header parameters
DriveKit-Admin-API-KeystringRequired

DK admin token

Content-TypestringRequiredDefault: Application/json
Body

Adds a new vehicle in the database

usernamestring · min: 1Optional

Username of the vehicle's owner

vehiclenamestring · min: 1Required

Vehicle Name

vehicleIdstring · min: 1Required

Vehicle client Id

Responses
chevron-right
200

OK

application/json
messagestringOptional
post
/drivekit/admin/vehicle

Request Body

The table below summarizes the content of a request body.

Name
Type
Description

username

string

Unique driver identifier

beaconIdentifier

Parameters of the beacon linked to the vehicle

vehicleId

string

Vehicle unique identifier

vehicleCharacteristics

object

vehiclename

string

Vehicle name

BeaconIdentifier

The table below summarizes the content of a beaconIdentifier object.

Field
Type
Description

major

int

Major

minor

int

Minor

proximityUuid

string

Proximity UUID

uniqueId

string

Beacon unique identifier

Body sample

Last updated

Was this helpful?