curl --request POST \
--url https://api.app.fleetit.com/v2/vehicles/bulk/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"plate_number": "TESTCASE001",
"plate_state": "NJ",
"tracking_code": "TRACK001",
"lessee_renter": "",
"custom_fields": {
"cost_center": "Cost Center 1"
},
"active": true
},
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2023",
"plate_number": "TESTCASE002",
"plate_state": "NJ",
"tracking_code": "TRACK002",
"lessee_renter": "",
"custom_fields": {
"cost_center": "Cost Center 2"
},
"active": true
},
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"plate_number": "TESTCASE003",
"plate_state": "NJ",
"tracking_code": "TRACK003",
"lessee_renter": "",
"active": true
}
]
'[
{
"id": 8130,
"plate_number": "TESTCASE001",
"plate_state": "NJ",
"vehicle_number": "TRACK001",
"status": "PENDING",
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"lessee_renter": "",
"active": true,
"custom_fields": {
"cost_center": "Cost Center 1"
}
}
]Create multiple vehicles in the system.
curl --request POST \
--url https://api.app.fleetit.com/v2/vehicles/bulk/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"plate_number": "TESTCASE001",
"plate_state": "NJ",
"tracking_code": "TRACK001",
"lessee_renter": "",
"custom_fields": {
"cost_center": "Cost Center 1"
},
"active": true
},
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2023",
"plate_number": "TESTCASE002",
"plate_state": "NJ",
"tracking_code": "TRACK002",
"lessee_renter": "",
"custom_fields": {
"cost_center": "Cost Center 2"
},
"active": true
},
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"plate_number": "TESTCASE003",
"plate_state": "NJ",
"tracking_code": "TRACK003",
"lessee_renter": "",
"active": true
}
]
'[
{
"id": 8130,
"plate_number": "TESTCASE001",
"plate_state": "NJ",
"vehicle_number": "TRACK001",
"status": "PENDING",
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"lessee_renter": "",
"active": true,
"custom_fields": {
"cost_center": "Cost Center 1"
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
500Required. Two-letter state code (A-Z only, exactly 2 characters). Auto-formatted to uppercase.
2^[A-Z]{2}$Required. License plate number (max 15 characters, letters and numbers only). Auto-formatted to uppercase with special characters removed. Must be unique when combined with plate_state.
1 - 15^[A-Z0-9]{1,15}$Vehicle manufacturer name.
Vehicle model name.
Manufacturing year (1000 to current year + 100). Numeric digits only.
VIN or custom vehicle identifier (max 20 characters, any format allowed).
20Custom tracking identifier.
Name of the person or entity leasing/renting the vehicle.
Custom fields specific to your fleet configuration.
Vehicle status. Defaults to true if not specified.
[
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"plate_number": "TESTCASE001",
"plate_state": "NJ",
"tracking_code": "TRACK001",
"lessee_renter": "",
"custom_fields": { "cost_center": "Cost Center 1" },
"active": true
},
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2023",
"plate_number": "TESTCASE002",
"plate_state": "NJ",
"tracking_code": "TRACK002",
"lessee_renter": "",
"custom_fields": { "cost_center": "Cost Center 2" },
"active": true
},
{
"vehicle_make": "Toyota",
"vehicle_model": "Corolla",
"year": "2021",
"plate_number": "TESTCASE003",
"plate_state": "NJ",
"tracking_code": "TRACK003",
"lessee_renter": "",
"active": true
}
]Created
Was this page helpful?