Vehicle API - V2

Set default vehicle.

Marks a vehicle as the default for the user. It is automatically preselected in the driver app.


Open Swagger Specification

Endpoint

    PUT - https://api.travisroadservices.com/v2/vehicles/{id}/default
    Copy
  

Path params

Parameter Type Description
id string Unique identifier of the vehicle.

Request body

No request body

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. May contain alphanumeric characters, dashes, and spaces. Dashes and spaces are stripped before validation; minimum 4 characters, maximum 12.
fuelCard integer ID of the fuel card to link to this vehicle. Used when a booking or transaction is made.
fleetNumber string Fleet number to which this vehicle belongs.
vehicleDepot string (iri-reference) Vehicle depot this vehicle is assigned to. The depot ID can be retrieved via the vehicle depot API.
vehicleType string (iri-reference) Type of the vehicle. Available vehicle types can be retrieved via the vehicle type API.
vin string VIN number of the vehicle.
washFrequency object Wash frequency configuration for the vehicle. Only available for accounts with the control or automate subscription.
inside object Inside wash frequency configuration for the vehicle.
interval integer Maximum number of days allowed between inside washes.
status string Current wash frequency status. Possible values: onTime, overdue.
lastWashedAt string (date-time) Date and time when the vehicle was last washed.
outside object Outside wash frequency configuration for the vehicle.
interval integer Maximum number of days allowed between outside washes.
status string Current wash frequency status. Possible values: onTime, overdue.
lastWashedAt string (date-time) Date and time when the vehicle was last washed.
created object Information about when and by whom the vehicle was created.
at string (date-time) Date and time when the vehicle was created.
by object User or system that created the vehicle.
id integer Identifier of the user which created the API Resource
name string Name of the user which created the API Resource
importId string (uuid) Identifier of the import batch this vehicle was created from.
isDeletable boolean

Example

Response 400

Invalid input

Fields

Field Type Description
title string A short, human-readable summary of the problem.
detail string A human-readable explanation specific to this occurrence of the problem.
status number The HTTP status code applicable to this problem.
instance string A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
type string A URI reference that identifies the problem type

Example

Response 401

No response body - No bearer token set verify if your token is added as bearer token

Response 403

No response body - You don't have access to this API resource