This API version is deprecated
Please use the latest version for continued support and access to new features. View latest API documentation
Vehicle API
Update vehicle.
Update vehicle.
Endpoint
PUT - https://api.travisroadservices.com/v1/vehicles/{id}
Copy
Path params
| Parameter | Type | Description |
|---|---|---|
id
|
string | VehicleResource identifier |
Request body
Fields
| Field | Type | Required | Description |
|---|---|---|---|
fleetNumber
|
string | No | Fleet number for filtering or display within the customer fleet. |
vehicleDepot
|
string (iri-reference) | No | Vehicle depot to which this vehicle is assigned for invoicing purposes. |
fuelCard
|
string (iri-reference) | No | Fuel card linked to this vehicle for payment processing. |
Example
Response body
Response 200
VehicleResource resource updated
Fields
| Field | Type | Description |
|---|---|---|
id
|
integer | Unique identifier of the vehicle. |
licensePlate
|
string | License plate of the vehicle, communicated to service partners to identify the vehicle. |
fleetNumber
|
string | Fleet number for filtering or display within the customer fleet. |
vehicleType
|
integer | Vehicle type ID (e.g. truck, semi-trailer), retrieved via the vehicle types API. |
isDefaultVehicle
|
boolean | Indicates whether this is the default vehicle for single-driver users. |
vehicleDepot
|
object | Vehicle depot to which this vehicle is assigned for invoicing purposes. |
id
|
string | |
import
|
object | Import record associated with this vehicle if created via bulk import. |
id
|
string (uuid) | Unique identifier of the import. |
fuelCard
|
object | Fuel card linked to this vehicle for payment processing. |
id
|
integer | |
cardNumber
|
string | |
isMainCard
|
boolean | |
status
|
string |
Example