Vehicles
Get Vehicles
GET
https://api.binity.io/v1/companies/:uuid/vehicles
Get all vehicles of that specific company.
Headers
Authorization
string
Bearer Token
{
"vehicles":[
{
"uuid":"201912e9-c225-4492-aeeb-57d514c62957",
"name":"Auto Niklas",
"license_plate":"WN NK 213",
"vehicle_group": "ark",
"manufacturer": "volvo",
"load_capacity": 2.3,
"container_capacity": 1.5,
"active_days":[],
"chambers":[],
"equipment":[],
"user_uuid":"e1511f02-4690-4fd7-aa02-d45d41451693",
"project_uuid":"9ec51cf7-1d41-48bc-87b5-0781d6850911",
"company_uuid":"2b6b76ae-0f55-4f44-b5d4-ee6ea62b730b",
}
],
"meta":{
"pagination":{
"per_page":25,
"total_pages":1,
"total_objects":1,
"links":{
"first":"/v1/companies/2b6b76ae-0f55-4f44-b5d4-ee6ea62b730b/vehicles?page=1",
"last":"/v1/companies/2b6b76ae-0f55-4f44-b5d4-ee6ea62b730b/vehicles?page=1"
}
}
}
}
Create Vehicle
POST
https://api.binity.io/v1/companies/:uuid/vehicles
Create a new vehicle.
Headers
Authorization
string
Bearer Token
Request Body
name
string
The name of this vehicle.
license_plate
string
The license plate of this vehicle.
manufacturer
string
Can be one of: 'caterpillar', 'crown', 'faun', 'fuchs', 'hitachi', 'hs_fahrzeugbau', 'jungheinrich', 'komatsu', 'liebherr', 'linde', 'meiller', 'sennebogen', 'still', 'terberg', 'toyota', 'volvo', 'wüllhorst', 'zöller' or 'other'.
load_capacity
number
Load capacity.
container_capacity
number
Container capacity.
project_uuid
string
The project this vehicle should be part of.
{
"vehicle":{
"uuid":"201912e9-c225-4492-aeeb-57d514c62957",
"name":"Auto Niklas",
"license_plate":"WN NK 213",
"vehicle_group": "ark",
"manufacturer": "volvo",
"load_capacity": 2.3,
"container_capacity": 1.5,
"active_days":[],
"chambers":[],
"equipment":[],
"user_uuid":"e1511f02-4690-4fd7-aa02-d45d41451693",
"project_uuid":"9ec51cf7-1d41-48bc-87b5-0781d6850911",
"company_uuid":"2b6b76ae-0f55-4f44-b5d4-ee6ea62b730b",
}
}
Get Vehicle
GET
https://api.binity.io/v1/companies/:uuid/vehicles/:vehicle_uuid
Get data of a single vehicle.
Headers
Authorization
string
Bearer Token
{
"vehicle":{
"uuid":"201912e9-c225-4492-aeeb-57d514c62957",
"name":"Auto Niklas",
"license_plate":"WN NK 213",
"vehicle_group": "ark",
"manufacturer": "volvo",
"load_capacity": 2.3,
"container_capacity": 1.5,
"active_days":[],
"chambers":[],
"equipment":[],
"user_uuid":"e1511f02-4690-4fd7-aa02-d45d41451693",
"project_uuid":"9ec51cf7-1d41-48bc-87b5-0781d6850911",
"company_uuid":"2b6b76ae-0f55-4f44-b5d4-ee6ea62b730b",
}
}
Update Vehicle
PATCH
https://api.binity.io/v1/companies/:uuid/vehicles/:vehicle_uuid
Update data of a single vehicle.
Headers
Authorization
string
Bearer Token
{
"vehicle":{
"uuid":"201912e9-c225-4492-aeeb-57d514c62957",
"name":"Auto Niklas",
"license_plate":"WN NK 213",
"vehicle_group": "ark",
"manufacturer": "volvo",
"load_capacity": 2.3,
"container_capacity": 1.5,
"active_days":[],
"chambers":[],
"equipment":[],
"user_uuid":"e1511f02-4690-4fd7-aa02-d45d41451693",
"project_uuid":"9ec51cf7-1d41-48bc-87b5-0781d6850911",
"company_uuid":"2b6b76ae-0f55-4f44-b5d4-ee6ea62b730b",
}
}
Delete Vehicle
DELETE
https://api.binity.io/v1/companies/:uuid/vehicles/:vehicle_uuid
Delete a single vehicle.
Headers
Authorization
string
Bearer Token
{
"deleted": true
}
Last updated
Was this helpful?