Update a vehicle
PUT/vehicles/update/:plate
Update a vehicle from the user.
⚠️ WARNING: If sending listProviders to update, providers that were in the vehicle and are not shipped will be deregistered.
Request
Path Parameters
Number plate of the vehicle
Header Parameters
Authentication header obtained from POST /authenticate
that identifies the user making this call.
Authentication header obtained from LMP Team that identifies the client making this call.
Authentication header obtained from LMP Team that identifies the user making this call.
- application/json
Body
required
The new vehicle for the user.
The brand of the vehicle (ie Seat
)
The model of the vehicle (ie Ibiza
)
Possible values: [0
, C
, B
, ECO
]
The environmental tag for the vehicle (ie C
)
Default value: ``
List of suppliers with automatic access to register the vehicle. Those that were previously on the list and are not sent will be cancelled.
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Number plate for the vehicle. Uppercase, without spaces (ie 0388VCP
)
The brand of the vehicle (ie Seat
)
The model of the vehicle (ie Ibiza
)
Possible values: [0
, C
, B
, ECO
]
The environmental tag for the vehicle (ie C
)
Default value: ``
List of suppliers with automatic access to register the vehicle. Those that were previously on the list and are not sent will be cancelled.
{
"plate": "0388VCP",
"brand": "Seat",
"model": "Ibiza",
"tag": "C",
"listProviders": [
"parkia",
"moviltik"
]
}
Bad request (ie. Vehicle not found)
Unauthorized (ie. Incorrect or missing x-access-token
)
Internal server Error (ie. Database down)