---
title: "Create Fuel Type"
method: POST
path: "/fuel_types"
tags: ["Fuel Types"]
---

# Create Fuel Type

`POST /fuel_types`

## Request

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

Creates a new Fuel Type

## Request body

- object
  - `name` string, required: The name of the Fuel Type. Must be unique.

## Response `201`

OK

- FuelType: A Fuel 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 Fuel Type. Unique within the `Account`.
  - `vehicles_count` integer, required: The number of `Vehicles` that have used this Fuel Type.
  - `fuel_entries_count` integer, required: The number of `Fuel Entries` that have used this Fuel 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)
