POST
/
vehicles
/
{vehicle}
curl --request POST \
  --url https://api.chargeapi.co/v1/vehicles/{vehicle} \
  --header 'Content-Type: application/json' \
  --data '{
  "battery_capacity": 123,
  "charging_standard": "CCS",
  "information": {
    "make": "<string>",
    "model": "<string>",
    "year": "<string>"
  },
  "registration_plate": "<string>",
  "status": "active",
  "metadata": {}
}'
{
  "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 to update.

Body

application/json

Response

200
application/json

Returns the updated Vehicle object with any supplied changes applied.