Vehicle API - V2
Create vehicle depot.
Adds a new vehicle depot to the system and returns its ID, name, and other key details.
Endpoint
POST - https://api.travisroadservices.com/v2/vehicle_depots
Copy
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. |
assignedVehicles
|
array | No | IDs of vehicles to assign to this depot on creation. |
assignedUsers
|
array | No | IDs of customer users to assign to this depot. |
Example
Response body
Response 201
VehicleDepotResource resource created
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