associateVehicleId API Endpoint
This section lists the APIs needed to associate a vehicle Id to a beacon's unique UUID. Before proceeding, please note the following:
A beacon can be mapped to only one vehicle at a time. However, a vehicle can have more than one beacon associated with it.
In order to associate an existing beacon with a new vehicle, previous beacon mapping must first be disassociated.
associateVehicleId PUT API Details
PUT
URL: https://api.zendrive.com/v1/beacon
Beacons can be created and configured with a unique ID using the HTTP PUT method.
Headers
Authorization*
String
API KEY <APIKEY>
Content-Type*
String
application/json
Request Body
uuid*
String
beacon uuid
major*
String
beacon major version
minor*
String
beacon minor version
vehicle id*
String
Associated vehicle (if existing)
{
// Response
}
associateVehicleId GET API Details
GET
URL: https://api.zendrive.com/<v1>/beacon
Beacons configured with a unique ID can be retrieved using the HTTP GET method.
Headers
Authorization*
String
API KEY <APIKEY>
Content-Type*
String
application/json
Request Body
uuid*
String
Unique beacon Id
major*
String
Beacon major version
minor*
String
Beacon minor version
{
// “uuid”:“uuid1”
“major”:1
“minor”:
“vehicle_id”:”vehicle1_id”
//
}
Response Body
{
// “uuid”:“uuid1”
“major”:1
“minor”:
“vehicle_id”:”vehicle1_id”
//
}
Was this helpful?