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
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faMust be
application/jsonQuery Parameters
Same filter parameters as the list endpoint:Filter by transport typeAvailable values:
car, metro, train, trolleybus, bus, motorbike, aircraft, ferryFilter by statusAvailable values:
active, pending, loading, completed, errorFilter by minimum travel date (inclusive)Format:
YYYY-MM-DDFilter by maximum travel date (inclusive)Format:
YYYY-MM-DDSearch by name (case-insensitive substring match)
Filter by exact name values (multi-select, OR logic)
Filter by source file UUID
Filter records created on or after this timestampFormat:
YYYY-MM-DDTHH:MM:SSZFilter records created on or before this timestampFormat:
YYYY-MM-DDTHH:MM:SSZFilter by CO2e calculation statusAvailable values:
calculated, not_calculatedBody Parameters
Hash returned by the list endpoint for the current filter combination. Prevents deleting records from a stale filter state.
Response
Number of items successfully deleted
UUIDs of business travels that were successfully deleted
Number of items that failed to delete
UUIDs that could not be deleted (not found or deletion error)
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

