POST
/
drivers
/
{driver}
/
detach
curl --request POST \
  --url https://api.chargeapi.co/v1/drivers/{driver}/detach \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "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

driver
string
required

ID of the driver to detach from.

vehicle
string
required

ID of the vehicle to detach.

Body

application/json · object

Response

200
application/json

Returns the Driver object with the specified vehicle removed from its vehicles array.