API ReferenceVehicles
Update vehicle
Updates an existing vehicle.
AuthorizationBearer <token>
In: header
Path Parameters
vehicleId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "http://localhost:18080/api/v1/vehicles/string" \ -H "Content-Type: application/json" \ -d '{ "brand": "string", "color": "string", "fuelType": "PETROL", "licensePlate": "string", "mileage": 0, "mileageUnit": "KM", "model": "string", "type": "CAR", "year": 0 }'{
"averageFuelConsumption": 0.1,
"brand": "string",
"capacity": {
"height": 0.1,
"length": 0.1,
"seats": 0,
"weight": 0.1,
"width": 0.1
},
"color": "string",
"costOverDistanceDriven": 0.1,
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"currencyUnit": "string",
"fuelHistory": [
{
"amount": 0.1,
"date": "2019-08-24T14:15:22Z",
"fuelConsumption": 0.1,
"id": "string",
"mileage": 0.1,
"price": 0.1,
"user": "string"
}
],
"fuelType": "PETROL",
"id": "string",
"licensePlate": "string",
"location": {
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"coordinate": {
"latitude": -90,
"longitude": -180
},
"name": "string"
},
"locationHistory": [
{
"date": "2019-08-24T14:15:22Z",
"id": "string",
"location": {
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"coordinate": {
"latitude": -90,
"longitude": -180
},
"name": "string"
}
}
],
"mileage": 0,
"mileageUnit": "KM",
"model": "string",
"tenantId": "string",
"type": "CAR",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"vin": "string",
"year": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}