Bulk Replace Vehicles
PUT/vehicles
Bulk-replaces all vehicles for a user and returns the list after modifications have been made.
This method replaces up to 10,000 vehicles, if you wish to use more please use "Bulk Insert Vehicles" (`POST /vehicles`).
You may use the `x-batch` header if you do not want to wait for completion.
⚠️ WARNING: Providers that are not sent in "listProviders" that were registered will be deleted and deregistered for that vehicle.
Request
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.
A header that specifies if the endpoint should return 202 Accepted
immediately, instead of waiting for completion.
- application/json
Body
arrayrequired
A list of vehicles for this user.
- Array [
- ]
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.
Responses
- 200
- 202
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
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"
]
}
]
Accepted
Bad request (ie. Invalid plate
for vehicle index [0])
Unauthorized (ie. Incorrect or missing x-access-token
)
Internal server Error (ie. Database down)