Skip to main content
POST
Bulk Delete by Filters

Bulk Delete by Filters

Deletes all business travels matching the provided filter parameters. Requires at least one filter to prevent accidental mass deletion. A filter_hash from the list endpoint must be provided to confirm the filters haven’t changed since the user reviewed them.
Permanent Action: Deleted records and their associated emissions cannot be recovered.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa
string
required
Must be application/json

Query Parameters

Same filter parameters as the list endpoint:
array[string]
Filter by transport typeAvailable values: car, metro, train, trolleybus, bus, motorbike, aircraft, ferry
array[string]
Filter by statusAvailable values: active, pending, loading, completed, error
date
Filter by minimum travel date (inclusive)Format: YYYY-MM-DD
date
Filter by maximum travel date (inclusive)Format: YYYY-MM-DD
string
Search by name (case-insensitive substring match)
array[string]
Filter by exact name values (multi-select, OR logic)
array[uuid]
Filter by source file UUID
datetime
Filter records created on or after this timestampFormat: YYYY-MM-DDTHH:MM:SSZ
datetime
Filter records created on or before this timestampFormat: YYYY-MM-DDTHH:MM:SSZ
string
Filter by CO2e calculation statusAvailable values: calculated, not_calculated

Body Parameters

string
required
Hash returned by the list endpoint for the current filter combination. Prevents deleting records from a stale filter state.

Response

integer
Number of items successfully deleted
array[string]
UUIDs of business travels that were successfully deleted
integer
Number of items that failed to delete
array[string]
UUIDs that could not be deleted (not found or deletion error)
string
Human-readable summary message

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

409 Conflict

Cause: Filters changed since the list was loaded

422 Unprocessable Entity

Cause: No filter parameters provided

Bulk Delete

Delete specific records by ID

List

Browse and filter business travels

Delete

Delete a single business travel