Skip to main content
GET
Get Transport Route Version History

Get Transport Route Version History

Returns a paginated list of every change ever made to a transport route — who made it, when, and which fields were affected. Each entry covers one database transaction and includes a changes array that shows the before/after value for each tracked field. Tracked fields: name, quantity, unit_id, start_date, transport_direction.

Request

Headers

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

Path Parameters

string
required
The unique identifier (UUID) of the transport routeExample: 010ed3b6-b513-40f3-b9fe-0f0a338d9274

Query Parameters

integer
default:"1"
Page number (1-based)
integer
default:"50"
Number of version entries per page

Response

array
List of version entries for the requested page. See Version Entry Fields below.
integer
Total number of version entries across all pages
integer
Current page number
integer
Number of items per page

Version Entry Fields

integer
Internal database transaction ID. Versions are returned newest-first (descending transaction_id).
string
Type of change: CREATE, UPDATE, or DELETE
datetime | null
ISO 8601 timestamp of when the change was committed. null for very old records pre-dating audit logging.
string | null
ID of the user who made the change. null for system-triggered changes.
string | null
First name of the user who made the change
string | null
Last name of the user who made the change
array
Field-level diff for this version entry.
For CREATE operations, old_value is always null and new_value contains the initial value of each tracked field. For UPDATE operations, only fields that actually changed are included in changes. For DELETE operations, changes is an empty array.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key / JWT token

403 Forbidden

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

404 Not Found

Cause: Route ID does not exist or belongs to a different organization

Get Transport Route

Retrieve the current state of a transport route

Update Transport Route

Modify a transport route and its sections

List Transport Routes

Retrieve all transport routes with filtering and pagination

Transport Overview

Full data model and distance calculation reference