Bulk Insert Vehicles
POST/vehicles
Inserts a list of vehicles to a users account profile.
Can be used with large payloads (tested up to 150,000 vehicles).
You may use the `x-batch` header if you do not want to wait for completion.
It can also be used to modify specific vehicles without deleting those that are not shipped as in "Bulk Replace Vehicle".
⚠️ WARNING: If inserting your vehicles in bulk using `x-batch`, please wait 10s minimum between each call to `POST /vehicles` to allow the previous one to complete.
⚠️ 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
Accepted
Bad request (ie. Invalid plate
for vehicle index [0])
Unauthorized (ie. Incorrect or missing x-access-token
)
Internal server Error (ie. Database down)