Getting Started
- Accounts
- Charging Sessions
- Charging Stations
- Drivers
- Estimations
- Fleets
- Invoices
- Payment Methods
- Reports
- Reservations
- Transactions
- Vehicles
- Vehicle Telemetries
- Webhook Endpoints
Drivers
Update a driver
Updates the specified Driver object by setting the values of the parameters provided. Any parameters not included in the request remain unchanged.
POST
/
drivers
/
{driver}
Copy
curl --request POST \
--url https://api.chargeapi.co/v1/drivers/{driver} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"license_number": "<string>",
"status": "active",
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"metadata": {}
}'
Copy
{
"id": null,
"object": null,
"created": null,
"email": null,
"license_number": null,
"name": null,
"phone": null,
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"status": null,
"updated": null,
"vehicles": null,
"wallet_balance": null
}
Path Parameters
ID of the driver to update.
Body
application/json
Response
200
application/json
Returns the updated Driver object with all requested changes applied..
Copy
curl --request POST \
--url https://api.chargeapi.co/v1/drivers/{driver} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"phone": "<string>",
"license_number": "<string>",
"status": "active",
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"metadata": {}
}'
Copy
{
"id": null,
"object": null,
"created": null,
"email": null,
"license_number": null,
"name": null,
"phone": null,
"preferences": {
"charging_speed": null,
"notifications": null,
"currency": null,
"payment_method": null,
"max_price_per_kwh": null,
"preferred_cpos": null,
"preferred_charging_stations": null
},
"status": null,
"updated": null,
"vehicles": null,
"wallet_balance": null
}
Assistant
Responses are generated using AI and may contain mistakes.