Update Transport Route
Update Transport Route
Update a transport route and replace all its sections
PUT
Update Transport Route
Update Transport Route
Update an existing transport route’s metadata and sections. Whensections is provided it completely replaces all existing sections — partial section patches are not supported. After a successful update, emissions are recalculated asynchronously and the route status is reset to pending.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
string
required
The unique identifier (UUID) of the transport route to updateExample:
010ed3b6-b513-40f3-b9fe-0f0a338d9274Body
string
Optional route name
string
Date of transport in
YYYY-MM-DD formatExample: 2024-06-15number
Amount transported. Must be greater than 0, max 10 digits with 3 decimal placesExample:
2500.000string
Optional supplier nameExample:
LogiTrans S.A.string
Recurrence of this route. One of:
once, weekly, monthlystring
UUID of the measurement unit for
quantity_transportedExample: 61743a63-ff70-459c-9567-5eee8f7dfd5carray
required
List of transport sections (legs). Must contain at least 1 item. Replaces all existing sections.
Response
Returns the updatedTransportRouteSch object with status 201 Created.
string
Unique identifier (UUID)
string | null
Optional route name
date
Date of transport (YYYY-MM-DD).
null if not setnumber
Amount transported (max 10 digits, 3 decimal places)
string | null
Optional supplier name
string
downstream or upstreamstring
Recurrence:
once, weekly, monthlyobject
Measurement unit for the quantity transported
string
Route status:
pending immediately after update (recalculation in progress), active once complete, error if calculation failednumber | null
Total CO2-equivalent emissions in kg.
null while recalculation is in progressarray
Route-level emissions summary:
[{"value": 245.67, "gas": "co2e", "unit_name": "kgCO2e"}]array
Newly created sections. Emissions fields will be
null until asynchronous calculation completes. See Get Transport Route for the full section schemastring | null
ID of the file if this route was created via bulk upload
datetime
ISO 8601 creation timestamp
datetime | null
ISO 8601 last-update timestamp
Example
Successful Response
The response status will be
pending immediately after the update. Poll Get Transport Route or use Get Route Counts to track when recalculation completes.Common Errors
401 Unauthorized
Cause: Missing or invalid API key / JWT token403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: Route ID does not exist or belongs to a different organization422 Unprocessable Entity
Cause: Validation error — e.g.sections is empty, quantity_transported is zero or negative, or an enum value is invalid
Related Endpoints
Get Transport Route
Retrieve a route by ID to check recalculation progress
Create Transport Route
Create a new transport route with sections
Delete Transport Route
Remove a transport route permanently
Get Route Counts
Monitor pending, active, and error counts
List Transport Routes
Retrieve all transport routes with filtering and pagination
Transport Overview
Full data model and distance calculation reference