---
title: "Create Vehicle Type"
method: POST
path: "/vehicle_types"
tags: ["Vehicle Types"]
---

# Create Vehicle Type

`POST /vehicle_types`

## Request

- Base URL: `https://secure.fleetio.com/api`
- URL: `https://secure.fleetio.com/api/vehicle_types`
- Auth: API key in header `Authorization` and API key in header `Account-Token`
- TypeScript: <https://skmtc.dev/fleetio/apis/fleetio-developer-api/docs/vehicle_types/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new Vehicle Type

## Request body

- object
  - `name` string, required: The name of the Vehicle Type. Must be unique.
  - `default` boolean: Whether this Vehicle Type should be the default applied to new `Vehicles`.

## Response `201`

OK

- VehicleType: A Vehicle Type
  - `id` integer
  - `created_at` string, date-time: The date and time at which this record was created.
  - `updated_at` string, date-time: The date and time at which this record was most recently updated.
  - `account_id` integer, required
  - `name` string, required: The name of the Vehicle Type.
  - `default` boolean, required: Whether this Vehicle Type is the default applied to new `Vehicles`.
  - `unarchived_vehicles_count` integer, required: The number of unarchived `Vehicles` that are of this Vehicle Type.
  - `vehicles_count` integer, required: The total number of `Vehicles` that are of this Vehicle Type.

## Other responses

- `401`: Request could not be authenticated
- `403`: Insufficient permission to perform this operation
- `422`: Unprocessable Entity
- `500`: Something unexpected happened

---

[API](https://skmtc.dev/fleetio/apis/fleetio-developer-api.md) - [All operations](https://skmtc.dev/fleetio/apis/fleetio-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fleetio/apis/fleetio-developer-api/revisions/49558d744bd7?raw)
