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
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-d839e68d51faPath Parameters
The unique identifier (UUID) of the transport route to updateExample:
010ed3b6-b513-40f3-b9fe-0f0a338d9274Body
Optional route name
Date of transport in
YYYY-MM-DD formatExample: 2024-06-15Amount transported. Must be greater than 0, max 10 digits with 3 decimal placesExample:
2500.000Optional supplier nameExample:
LogiTrans S.A.Recurrence of this route. One of:
once, weekly, monthlyUUID of the measurement unit for
quantity_transportedExample: 61743a63-ff70-459c-9567-5eee8f7dfd5cList of transport sections (legs). Must contain at least 1 item. Replaces all existing sections.
Response
Returns the updatedTransportRouteSch object with status 201 Created.
Unique identifier (UUID)
Optional route name
Date of transport (YYYY-MM-DD).
null if not setAmount transported (max 10 digits, 3 decimal places)
Optional supplier name
downstream or upstreamRecurrence:
once, weekly, monthlyMeasurement unit for the quantity transported
Route status:
pending immediately after update (recalculation in progress), active once complete, error if calculation failedTotal CO2-equivalent emissions in kg.
null while recalculation is in progressRoute-level emissions summary:
[{"value": 245.67, "gas": "co2e", "unit_name": "kgCO2e"}]Newly created sections. Emissions fields will be
null until asynchronous calculation completes. See Get Transport Route for the full section schemaID of the file if this route was created via bulk upload
ISO 8601 creation timestamp
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

