Update Business Travel
Update Business Travel
Update an existing business travel record
PATCH
Update Business Travel
Update Business Travel
Update an existing business travel record. Only provide the fields you want to change. Emissions will be recalculated automatically if relevant fields are modified.Request
Headers
Bearer token for authenticationExample:
Bearer sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faMust be
application/jsonPath Parameters
The unique identifier (UUID) of the business travel recordExample:
550e8400-e29b-41d4-a716-446655440000Body Parameters
All fields are optional. Only include the fields you want to update.Date of the business travelFormat:
YYYY-MM-DDMode of transportAvailable values:
car, metro, train, trolleybus, bus, motorbike, aircraft, ferryDistance traveled in kilometersConstraints: Must be positive
Starting location address
Ending location address
Number of travelersConstraints: 1 to 1000
Whether this is a round trip
Vehicle size (for
car or motorbike)Available values: small, medium, large, averageFuel type (for
car or motorbike)Available values: petrol, diesel, cng, lpg, unknown, plug_in_hybrid_electric, battery_electricFlight type (for
aircraft)Available values: domestic, short_haul_international, long_haul_internationalCabin class (for
aircraft)Available values: economy, premium_economy, business, first, averageResponse
Returns the updated business travel object.Example
Successful Response
When updating fields that affect emissions (distance, transport type, travel number, round trip), the
co2e value will be recalculated asynchronously. The status may temporarily change to pending.Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Business travel not found or doesn’t belong to your organization422 Validation Error
Cause: Invalid field valuesUse Cases
Update Flight Class
Change the cabin class for an existing flight:Change Route with Distance Recalculation
Update origin and destination to recalculate distance:Correct Number of Travelers
Related Endpoints
Get Business Travel
Get current business travel details
Delete Business Travel
Remove a business travel record
List Business Travels
Retrieve all business travels

