POST
/
v2
/
vehicles
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
  }
}
Ensure that the custom fields are already attached to the fleet before adding a vehicle via payload. The system will only accept custom fields that are predefined. Currently, the only way to add custom fields is through the app interface.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Fleet-Id
string

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.