Edit vehicle
PUT/api/vehicle/:id
Edit a vehicle associated with your company.
Request
Path Parameters
Header Parameters
Apikey of a company linked to a user
- application/json
Body
Types of loading methods valid for the truck ("NONE", "up", "lateral", "back")
Truck type ("NONE", "r3c", "tir", "rt", "r2c", "r2d", "van", "frc", "f2c", "adr", "ft", "pt ", "cc", "hdcc", "dump", "live" or "cocar")
Truck plate.
Refrigerated or dry truck ("fresh" or "dry")
Temperature that the truck can reach if it is refrigerated, in degrees Celsius.
Image of the truck.
Truck ITV document.
Responses
- 200
Example response
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
data object
Types of loading methods valid for the truck ("NONE", "up", "lateral", "back")
Truck type ("NONE", "r3c", "tir", "rt", "r2c", "r2d", "van", "frc", "f2c", "adr", "ft", "pt ", "cc", "hdcc", "dump", "live" or "cocar")
Image of the truck.
Truck ITV document.
Refrigerated or dry truck ("fresh" or "dry")
Truck plate
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
}
}