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
uuid
required
The UUID of the vehicle to updateExample:
550e8400-e29b-41d4-a716-446655440000Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
All parameters are optional. Only include fields you want to update.string
Custom name or alias for the vehicleExample:
"Updated Fleet Car Name"string
Type of vehicle usageAvailable values:
passenger, freightExample: "passenger"string
Vehicle ownership typeAvailable values:
owned, rentedExample: "owned"string
Vehicle registration/license plate numberExample:
"XYZ-9999"string
ISO 3166-1 country code (2-3 characters)Examples:
"US", "GB", "ES", "DE"Example: "ES"uuid
UUID of the vehicle fuel typeRetrieve available options from
GET /v1/vehicle-fuelsExample: "660e8400-e29b-41d4-a716-446655440000"uuid
UUID of a custom emission factorFor organizations with custom emission dataExample:
"770e8400-e29b-41d4-a716-446655440000"integer
Year of vehicle registration (YYYY format)Example:
2023string
Vehicle market segment for classificationAvailable values:
mini, supermini, lower_medium, upper_medium, executive, luxury, sports, dual_purpose_4x4, mpvExample: "upper_medium"string
Vehicle size categoryAvailable values:
small_car, medium, large_car, average_carExample: "medium"uuid
UUID of the unknown vehicle typeExample:
"550e8400-e29b-41d4-a716-446655440001"Response
string
Unique identifier (UUID) for the vehicle
string | null
Custom name or alias for the vehicle
string
Type of vehicle usage:
passenger or freightstring
Ownership type:
owned or rentedstring
Vehicle registration/license plate number
string
ISO 3166-1 country code
string
Current status:
active, archived, or errornumber
Updated CO2 equivalent emissions in kg CO2e
string | null
UUID of the fuel type
string | null
Fuel type name (e.g.
diesel, petrol, electric)array[object] | null
Available fuel units for this vehicle’s fuel type
string | null
UUID of the unknown vehicle type
string | null
String name of the unknown vehicle type (e.g.
Truck, Van)string | null
UUID of the custom emission factor applied, if any
integer | null
Year of vehicle registration
string | null
Vehicle market segment classification
string | null
Vehicle size category
array[string] | null
Error codes when status is
errorstring | null
UUID of the import file, if created via CSV import
string | null
Name of the import file, if created via CSV import
datetime
Timestamp when the vehicle was created
datetime | null
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