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,
"currency": null,
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": null,
"preferred_charging_stations": null,
"preferred_cpos": null
},
"metadata": {}
}'
{
"id": null,
"object": null,
"created": null,
"email": null,
"fleets": null,
"license_number": null,
"name": null,
"phone": null,
"preferences": {
"charging_speed": null,
"currency": null,
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": null,
"preferred_charging_stations": null,
"preferred_cpos": null
},
"status": null,
"updated": null,
"vehicles": null,
"wallet_balance": null
}
Updates the specified Driver object by setting the values of the parameters provided. Any parameters not included in the request remain unchanged.
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,
"currency": null,
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": null,
"preferred_charging_stations": null,
"preferred_cpos": null
},
"metadata": {}
}'
{
"id": null,
"object": null,
"created": null,
"email": null,
"fleets": null,
"license_number": null,
"name": null,
"phone": null,
"preferences": {
"charging_speed": null,
"currency": null,
"default_payment_method": null,
"max_price_per_kwh": null,
"notifications": null,
"preferred_charging_stations": null,
"preferred_cpos": null
},
"status": null,
"updated": null,
"vehicles": null,
"wallet_balance": null
}
ID of the driver to update.
Returns the updated Driver object with all requested changes applied..