Edit Vehicle
POST/vehicles/:id
Edit one vehicle
Request
Path Parameters
id stringrequired
Header Parameters
Authorization stringrequired
Token de Auth del Usuario
- multipart/form-data
Body
Info relative to the vehicle
cargo_type stringrequired
fresh_cargo_temp stringrequired
vehicle_type stringrequired
plate stringrequired
shipping_type stringrequired
itv object
image object
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
status integer
data object
Modelo de Vehicle
_id string
cargo_type string[]
vehicle_type string
image string
itv string
shipping_type string
plate string
{
"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": "r3c",
"image": "/images?file=6464b3f4bacdaf24d1f7fa22/image/20230920/1695220415115--a.png",
"itv": "/files?file=6464b3f4bacdaf24d1f7fa22/itv/20230920/1695220415128--iru-cmr-model-2007-en-fr.pdf",
"shipping_type": "fresh",
"_id": "650b02c06309641b5bf6ba7b",
"deleted": false,
"fresh_cargo_temp": 12,
"plate": "123123123",
"createdAt": "2023-09-20T14:33:36.111Z",
"updatedAt": "2023-09-20T14:33:36.111Z"
}
}
Bad Request
Loading...