Delete vehicle
DELETE/api/vehicle/:id
Delete a vehicle associated with your company.
Request
Path Parameters
id stringrequired
Header Parameters
apikey stringrequired
Apikey of a company linked to a user
Responses
- 200
Example response
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
status integer
data object
_id string
cargo_type string[]
Types of loading methods valid for the truck ("NONE", "up", "lateral", "back")
vehicle_type string
Truck type ("NONE", "r3c", "tir", "rt", "r2c", "r2d", "van", "frc", "f2c", "adr", "ft", "pt ", "cc", "hdcc", "dump", "live" or "cocar")
image string
Image of the truck.
itv string
Truck ITV document.
shipping_type string
Refrigerated or dry truck ("fresh" or "dry")
plate string
Truck plate
fresh_cargo_temp integer
Temperature that the truck can reach if it is refrigerated, in degrees Celsius.
{
"status": 0,
"data": {
"_id": "65e1f94fc5953704852eb5a3",
"cargo_type": [
"back",
"lateral"
],
"vehicle_type": "rt",
"image": "",
"itv": "",
"shipping_type": "dry",
"plate": "0017bbb"
}
}
{
"status": 200,
"data": {
"cargo_type": [
"up",
"lateral"
],
"vehicle_type": "ft",
"image": "/images?file=image/20240304/1709568926976--descarga.jpg",
"itv": "",
"shipping_type": "fresh",
"_id": "65e5f39f2563bef83a33b691",
"plate": "1234bcd",
"fresh_cargo_temp": -10
}
}
Loading...