Bulk Delete by Filters
Bulk Delete by Filters
Delete all business travels matching the given filters
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. Afilter_hash from the list endpoint must be provided to confirm the filters haven’t changed since the user reviewed them.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51fastring
required
Must be
application/jsonQuery Parameters
Same filter parameters as the list endpoint:array[string]
Filter by transport typeAvailable values:
car, metro, train, trolleybus, bus, motorbike, aircraft, ferryarray[string]
Filter by statusAvailable values:
active, pending, loading, completed, errordate
Filter by minimum travel date (inclusive)Format:
YYYY-MM-DDdate
Filter by maximum travel date (inclusive)Format:
YYYY-MM-DDstring
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:SSZdatetime
Filter records created on or before this timestampFormat:
YYYY-MM-DDTHH:MM:SSZstring
Filter by CO2e calculation statusAvailable values:
calculated, not_calculatedBody 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 key403 Forbidden
Cause: The authenticated user is not a member of the organization409 Conflict
Cause: Filters changed since the list was loaded422 Unprocessable Entity
Cause: No filter parameters providedRelated Endpoints
Bulk Delete
Delete specific records by ID
List
Browse and filter business travels
Delete
Delete a single business travel