Update Vehicle
Update Vehicle
Modify vehicle details and update fleet information
PATCH
Update Vehicle
Update Vehicle
Update specific fields of an existing vehicle. All fields are optional - only include fields you want to modify. Omitted fields will retain their current values.CO2e Recalculation: When you update fields like
vehicle_fuel_id, registration_year, or market_segment, CO2e emissions are automatically recalculated.Request
Path Parameters
The UUID of the vehicle to updateExample:
550e8400-e29b-41d4-a716-446655440000Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
All parameters are optional. Only include fields you want to update.Custom name or alias for the vehicleExample:
"Updated Fleet Car Name"Type of vehicle usageAvailable values:
passenger, freightExample: "passenger"Vehicle ownership typeAvailable values:
owned, rentedExample: "owned"Vehicle registration/license plate numberExample:
"XYZ-9999"ISO 3166-1 country code (2-3 characters)Examples:
"US", "GB", "ES", "DE"Example: "ES"UUID of the vehicle fuel typeRetrieve available options from
GET /v1/vehicle-fuelsExample: "660e8400-e29b-41d4-a716-446655440000"UUID of a custom emission factorFor organizations with custom emission dataExample:
"770e8400-e29b-41d4-a716-446655440000"Year of vehicle registration (YYYY format)Example:
2023Vehicle market segment for classificationAvailable values:
mini, supermini, lower_medium, upper_medium, executive, luxury, sports, dual_purpose_4x4, mpvExample: "upper_medium"Vehicle size categoryAvailable values:
small_car, medium, large_car, average_carExample: "medium"UUID of the unknown vehicle typeExample:
"550e8400-e29b-41d4-a716-446655440001"Response
Unique identifier (UUID) for the vehicle
Custom name or alias for the vehicle
Type of vehicle usage:
passenger or freightOwnership type:
owned or rentedVehicle registration/license plate number
ISO 3166-1 country code
Current status:
active, archived, or errorUpdated CO2 equivalent emissions in kg CO2e
UUID of the fuel type
Year of vehicle registration
Vehicle market segment classification
Vehicle size category
Timestamp when the vehicle was created
Timestamp when the vehicle was last updated
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Vehicle not found in organization422 Validation Error
Cause: Invalid values for enumerated fieldstype, ownership, market_segment, and size.
Use Cases
Update Vehicle Ownership Status
Change vehicle ownership from owned to rented:Update Fuel Type and Recalculate Emissions
Switch a vehicle to electric fuel to see emissions change:Update Multiple Vehicles Simultaneously
Update vehicles in bulk:Rename Vehicle Fleet
Update vehicle names for better organization:Related Endpoints
List Vehicles
Retrieve all vehicles with filtering and pagination
Create Vehicle
Add a new vehicle to your fleet
Delete Vehicle
Remove a vehicle from your fleet
Vehicle Fuels
Get available fuel types

