Download CSV template for bulk vehicle import
GET/company/vehicles/bulk/template
Generates and returns a CSV template file with headers and example data for bulk vehicle import.
Objective
Provide companies with a properly formatted template to facilitate bulk vehicle creation, reducing errors and ensuring correct data structure.
Use Cases
- Download template before creating bulk import file
- Reference example data formats
- Understand required and optional fields
Template Contents
The template includes:
- All valid field headers (required and optional)
- 3 example vehicle entries demonstrating different configurations:
- Fresh cargo vehicle with temperature
- Dry cargo vehicle (single cargo type)
- Dry cargo vehicle (different cargo type)
CSV Format:
cargo_type,fresh_cargo_temp,vehicle_type,plate,shipping_type
up, lateral,-20,f2c,8796HSN,fresh
up,,rt,7628BCB,dry
back,,r3c,4052SMR,dry
Response
Returns a downloadable CSV file with:
- Content-Type: text/csv
- Content-Disposition: attachment; filename=template.csv
Request
Responses
- 200
- 401
- 404
CSV template file generated successfully
Response Headers
Content-Disposition
User does not have an associated company.
User not found