Bulk Delete Transport Routes by Filters
Bulk Delete Transport Routes by Filters
Delete all transport routes matching the same filters used in the list endpoint
POST
Bulk Delete Transport Routes by Filters
Bulk Delete Transport Routes by Filters
Delete every transport route that matches a given set of filters — the same filters accepted by theGET /v1/transports list endpoint. This avoids having to collect IDs manually when you want to clear a whole date range, file upload, or status group.
A filter_hash safety token (returned by the list endpoint) must be included in the request body. This confirms you are deleting exactly the set of records you previewed, and rejects the request if the filters changed in the meantime.
Typical Flow
- Call
GET /v1/transportswith your desired filters. - Save the
filter_hashfield from the response. - Call
POST /v1/transports/bulk-delete-by-filterswith the same query parameters and thefilter_hashin the request body.
409 Conflict.
Request
Authentication
Supports both authentication methods:Your API key (use this or
Authorization)Example: sk_live_1234567890abcdefBearer JWT token (use this or
x-api-key)Example: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...Headers
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
At least one non-empty query parameter is required to prevent accidental mass deletion.Free-text search against route name and supplier
Include only routes with a transport date on or after this date (YYYY-MM-DD)
Include only routes with a transport date on or before this date (YYYY-MM-DD)
Filter by route status. Allowed values:
pending, active, error. Repeat the parameter to include multiple statuses.downstream (outbound) or upstream (inbound)Filter to routes created by a specific file upload. Repeat the parameter for multiple files.
Include only routes created on or after this ISO 8601 datetime
Include only routes created on or before this ISO 8601 datetime
calculated (routes with at least one impact) or not_calculated (routes with no impacts yet)Body
The
filter_hash value returned by GET /v1/transports with the same set of filters. Acts as a safety token: if the hash does not match the current filter combination a 409 Conflict is returned.Example: "a3f1c9e2d7b84056af19c3e0b1d72a84"Response
Number of transport routes successfully deleted
UUIDs of the transport routes that were successfully deleted
Number of transport routes that could not be deleted
UUIDs of the transport routes that failed
Human-readable summary of the operation outcome
Example
Successful Response
No matching records
Common Errors
401 Unauthorized
Cause: Missing or invalid API key / JWT token403 Forbidden
Cause: The authenticated user is not a member of the organization409 Conflict
Cause: Thefilter_hash does not match the current set of query parameters. This happens when the filters passed to this endpoint differ from the ones used when the list was fetched.
GET /v1/transports with your intended filters, copy the new filter_hash, and retry with exactly the same query parameters.
422 Unprocessable Entity
Cause: No query parameters were provided (all filters are empty)Related Endpoints
List Transport Routes
Retrieve all transport routes — the source of the filter_hash
Bulk Delete by IDs
Delete specific transport routes by their IDs
Delete Transport Route
Delete a single transport route by ID
Transport Overview
Full data model and distance calculation reference

