Create Vehicle
POST/vehicles
Create one vehicle
Request
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
cargo_type string[]
vehicle_type string
image string
itv string
shipping_type string
_id string
deleted boolean
fresh_cargo_temp integer
plate string
createdAt string
updatedAt string
{
"status": 0,
"data": {
"cargo_type": [
"string"
],
"vehicle_type": "string",
"image": "string",
"itv": "string",
"shipping_type": "string",
"_id": "string",
"deleted": true,
"fresh_cargo_temp": 0,
"plate": "string",
"createdAt": "string",
"updatedAt": "string"
}
}
{
"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...