Skip to main content
POST
Bulk Delete Vehicle Consumptions

Bulk Delete Vehicle Consumptions

Delete multiple consumption records for a vehicle in a single API call.
Permanent Action: Deleting consumption records is permanent and cannot be undone. All associated emissions data will be removed from your organization’s totals.

Request

Path Parameters

uuid
required
The UUID of the vehicle whose consumptions you want to deleteExample: 550e8400-e29b-41d4-a716-446655440000

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Body Parameters

array[string]
required
Array of consumption record UUIDs to delete. Minimum 1, maximum 100,000 IDs per request.Example: ["660e8400-e29b-41d4-a716-446655440000", "770e8400-e29b-41d4-a716-446655440001"]

Response

Returns 200 OK with a JSON summary of the operation.
integer
Number of consumption records successfully deleted
array[string]
UUIDs of successfully deleted consumption records
integer
Number of records that failed to delete
array[string]
UUIDs of records that failed to delete (not found or deletion error)
string
Human-readable summary of the operation

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

404 Not Found

Cause: Vehicle not found in organization

422 Validation Error

Cause: Invalid request body (e.g. empty consumption_ids array or exceeding 100,000 IDs)

Vehicle Consumptions

List all consumption records for a vehicle

Bulk Delete Consumptions by Filters

Delete consumptions matching filter criteria

Bulk Delete Vehicles

Delete multiple vehicles at once

Delete Vehicle

Delete a single vehicle