Skip to main content

Create a new vehicle in the fleet

POST 

/company/vehicles/

Endpoint to register a new vehicle in the company fleet. Requires JWT authentication and administrator permissions.

Important Notes:

  • The format must be multipart/form-data to support image uploads
  • Images must be binary files (JPEG, PNG)
  • The 'type' field must be a valid vehicle type ID (see /types endpoint)

Request Example:

{
license_plate: ABC1234,
type: type_987654321,
brand: Volvo,
model: FH16,
year: 2022,
images: [binary_file1, binary_file2]
}

Request

Responses

Vehicle successfully created