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 integer Id of the invoice entity
name string Name of the invoice entity
assignedVehiclesCount integer 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

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 integer 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

Response 404

Not found

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 integer 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 422

An error occurred

Fields

Field Type Description
status integer The HTTP status code (422).
violations array A list of constraint violations that caused the error.
detail string A human-readable description of the validation errors.
type string A URI reference identifying the validation error type.
title string A short summary of the error.
instance string A URI reference identifying the specific occurrence of the error.

Example