POST
/
vehicles
/
{vehicle}
/
drivers
curl --request POST \
  --url https://api.chargeapi.co/v1/vehicles/{vehicle}/drivers \
  --header 'Content-Type: application/json' \
  --data '{
  "driver": "<string>"
}'
{
  "id": null,
  "object": null,
  "battery_capacity": null,
  "charging_standard": null,
  "created": null,
  "drivers": null,
  "information": {
    "make": "<string>",
    "model": "<string>",
    "year": "<string>"
  },
  "metadata": null,
  "registration_plate": null,
  "status": null,
  "telemetry": null,
  "updated": null,
  "vin": null
}

Path Parameters

vehicle
string
required

ID of the vehicle that the driver will operate.

Body

application/json

Response

200
application/json

Returns the Vehicle object now containing the attached driver in its drivers array.