Skip to main content
PATCH
Update a trip

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required
trip_id
string<trp_string>
required

Body

application/json
vehicle_id
string<vhc_string> | null

The id of the Vehicle used for the trip

external_id
string | null

The external ID of the Trip

Maximum string length: 255
trip_date
string<date> | null

The date the trip occurred

distance

The distance travelled, in units defined by distance_unit

Required range: x > 0
distance_unit
enum<string> | null

The unit of measurement for distance

Available options:
miles,
kilometers
purpose
enum<string> | null

Whether the trip was for business or personal use

Available options:
business,
personal
start_address
string | null

Where the trip started (unstructured)

Maximum string length: 500
end_address
string | null

Where the trip ended (unstructured)

Maximum string length: 500
notes
string | null

Free-form notes about the trip from the user

Maximum string length: 1000

Response

Successful Response

data
TripPublic · object
required