Vehicles

Vehicle objects

Electric vehicle objects consist of the following properties:

id
The vehicle’s unique identifier.
brandName
The vehicle’s brand name.
modelName
The vehicle’s model name.
modelVersion
The vehicle’s build modelVersion or variant.
batteryCapacitykWh
The vehicle’s battery capacity (kWh).
chargeRatekW
The vehicle’s charging power (kW).
mode3Compatible
Does this vehicle support Mode 3 charging? (boolean)

Example object

{ "id": 105,
  "brandName": "Nissan",
  "modelName": "Leaf",
  "modelVersion": "2013",
  "batteryCapacitykWh": 24,
  "chargeRatekW": 3.3,
  "mode3Compatible": true }

Vehicle services

GET /abs/frontend/vehicle

Retrieve a list of all known vehicles.

Role:admin

Example response

{ "statusCode": "100", "vehicles": [ ...list of vehicle objects... ] }
GET /abs/frontend/vehicle/(id)

Retrieve a specific vehicle.

Role:admin
Statucode 217:Unknown vehicle.

Example response

{ "statusCode": "100", "vehicle": { ... } }
POST /abs/frontend/vehicle

Define a new vehicle. All vehicle parameters defined above are required.

The firmware has a limit of 100 defined vehicles.

Role:

admin

Status Codes:
  • 327 – Too many vehicles; no more vehicles can be defined.
PUT /abs/frontend/vehicle/(id)

Update a vehicle’s parameters.

Role:admin
Statucode 217:Unknown vehicle.
DELETE /abs/frontend/vehicle/(id)

Delete a vehicle.

Role:admin
Statucode 217:Unknown vehicle.