Vehicle API - V2

Update vehicle depot.

Updates vehicle depot information by ID and returns the latest details.


Open Swagger Specification

Endpoint

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

Path params

Parameter Type Description
id string Unique identifier of the vehicle depot.

Request body

Fields

Field Type Required Description
name string Yes Name of the vehicle depot.
invoiceEntity integer No ID of the invoice entity to which costs for this depot are billed.
assignedUsers array No IDs of customer users to assign to this depot.

Example

Response body

Response 200

VehicleDepotResource resource updated

Fields

Field Type Description
id object Unique identifier of the vehicle depot.
name string Name of the vehicle depot.
invoiceEntity object Invoice entity to which costs for this depot are billed.
id int Id of the invoice entity
name string Name of the invoice entity
assignedVehiclesCount int Total number of vehicles assigned to this depot.
created object Information about when and by whom the vehicle depot was created.
at string (date-time) Date and time when the vehicle depot was created.
by object User or system that created the vehicle depot.
id integer Identifier of the user which created the API Resource
name string Name of the user which created the API Resource

Example