Skip to main content
PUT
Update Transport Route

Update Transport Route

Update an existing transport route’s metadata and sections. When sections 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.
Sending sections deletes all existing sections and creates new ones. Any previously calculated distances and emissions for those sections are discarded and recalculated from scratch.

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 route to updateExample: 010ed3b6-b513-40f3-b9fe-0f0a338d9274

Body

string
Optional route name
string
Date of transport in YYYY-MM-DD formatExample: 2024-06-15
number
Amount transported. Must be greater than 0, max 10 digits with 3 decimal placesExample: 2500.000
string
Optional supplier nameExample: LogiTrans S.A.
string
Recurrence of this route. One of: once, weekly, monthly
string
UUID of the measurement unit for quantity_transportedExample: 61743a63-ff70-459c-9567-5eee8f7dfd5c
array
required
List of transport sections (legs). Must contain at least 1 item. Replaces all existing sections.

Response

Returns the updated TransportRouteSch object with status 201 Created.
string
Unique identifier (UUID)
string | null
Optional route name
date
Date of transport (YYYY-MM-DD). null if not set
number
Amount transported (max 10 digits, 3 decimal places)
string | null
Optional supplier name
string
downstream or upstream
string
Recurrence: once, weekly, monthly
object
Measurement unit for the quantity transported
string
Route status: pending immediately after update (recalculation in progress), active once complete, error if calculation failed
number | null
Total CO2-equivalent emissions in kg. null while recalculation is in progress
array
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 schema
string | 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 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

422 Unprocessable Entity

Cause: Validation error — e.g. sections is empty, quantity_transported is zero or negative, or an enum value is invalid

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