Getting Started
- Accounts
- Charging Sessions
- Charging Stations
- Drivers
- Estimations
- Fleets
- Invoices
- Payment Methods
- Reports
- Reservations
- Transactions
- Vehicles
- Vehicle Telemetries
- Webhook Endpoints
Fleets
Update a fleet
Updates the specified Fleet by setting the values of the parameters passed. Any parameters not provided remain unchanged.
POST
/
fleets
/
{fleet}
Copy
curl --request POST \
--url https://api.chargeapi.co/v1/fleets/{fleet} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"timezone": "<string>",
"metric_system": "international_system",
"preferences": {
"billing_cycle": null,
"notifications": null,
"default_currency": null,
"default_payment_method": null,
"report_frequency": null
},
"status": "active",
"metadata": {}
}'
Copy
{
"id": null,
"object": null,
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"created": null,
"description": null,
"email": null,
"metric_system": null,
"name": null,
"phone": null,
"preferences": {
"billing_cycle": null,
"notifications": null,
"default_currency": null,
"default_payment_method": null,
"report_frequency": null
},
"status": null,
"timezone": null,
"total_drivers": null,
"total_vehicles": null,
"total_energy_consumed_kwh": null,
"total_sessions": null,
"updated": null,
"wallet_balance": null
}
Path Parameters
ID of the fleet to update.
Body
application/json
Response
200
application/json
Fleet successfully updated.
Copy
curl --request POST \
--url https://api.chargeapi.co/v1/fleets/{fleet} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "<string>",
"timezone": "<string>",
"metric_system": "international_system",
"preferences": {
"billing_cycle": null,
"notifications": null,
"default_currency": null,
"default_payment_method": null,
"report_frequency": null
},
"status": "active",
"metadata": {}
}'
Copy
{
"id": null,
"object": null,
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"created": null,
"description": null,
"email": null,
"metric_system": null,
"name": null,
"phone": null,
"preferences": {
"billing_cycle": null,
"notifications": null,
"default_currency": null,
"default_payment_method": null,
"report_frequency": null
},
"status": null,
"timezone": null,
"total_drivers": null,
"total_vehicles": null,
"total_energy_consumed_kwh": null,
"total_sessions": null,
"updated": null,
"wallet_balance": null
}
Assistant
Responses are generated using AI and may contain mistakes.