cURL
curl --request POST \ --url https://api.app.fleetit.com/v2/vehicles/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "plate_state": "CA", "plate_number": "ABC123", "vehicle_make": "Toyota", "vehicle_model": "Camry", "year": "2022", "active": false, "lessee_renter": null, "vehicle_number": "325" }'
{ "status": "success", "message": "Vehicle created successfully.", "data": { "vehicle_id": "123456", "plate_number": "XYZ789", "plate_state": "TX", "vehicle_number": "789", "vehicle_make": "Honda", "vehicle_model": "Civic", "year": "2020", "lessee_renter": "John Doe", "custom_fields": {}, "vehicle_type_code": "SEDAN", "added_date": "2024-12-27T08:58:26.068690-05:00", "active": true } }
Create a new vehicle in the system.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful response
The response is of type object.
object
Was this page helpful?