Vehicle API - V2

Create vehicle depot

Adds a new vehicle depot to the system and returns its ID, name, and other key details.


Open Swagger Specification

Endpoint

    POST - https://api.travisroadservices.com/v2/vehicle_depots
    Copy
  

Request body

Response body

Response 201

Response 400

No response body

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 422


{
    "type": "https://tools.ietf.org/html/rfc2616#section-10",
    "title": "An error occurred",
    "detail": "vehicleType: This value should not be blank.",
    "violations": [
        {
            "propertyPath": "vehicleType",
            "message": "This value should not be blank.",
            "code": "c1051bb4-d103-4f74-8988-acbcafc7fdc3"
        }
    ]
}