Create vehicles from csv file
POST
/vehicles/file
Authorizations
Request Body required
object
fleetId
string
vins
string format: binary
Responses
201
Vehicles created
Examples
Example with cURL
curl -X POST http://localhost:3005/vehicles/file \-H 'Authorization: Bearer <your_token_here>' \-H 'Content-Type: multipart/form-data' \-d '{"fleetId":"string","vins":"string"}'400
Fleet id not provided
Examples
Example with cURL
curl -X POST http://localhost:3005/vehicles/file \-H 'Authorization: Bearer <your_token_here>' \-H 'Content-Type: multipart/form-data' \-d '{"fleetId":"string","vins":"string"}'404
Fleet not found
Examples
Example with cURL
curl -X POST http://localhost:3005/vehicles/file \-H 'Authorization: Bearer <your_token_here>' \-H 'Content-Type: multipart/form-data' \-d '{"fleetId":"string","vins":"string"}'415
Unsupported media type for uploaded file
Examples
Example with cURL
curl -X POST http://localhost:3005/vehicles/file \-H 'Authorization: Bearer <your_token_here>' \-H 'Content-Type: multipart/form-data' \-d '{"fleetId":"string","vins":"string"}'