---
title: "Create an inventory type"
method: POST
path: "/types/inventory"
tags: ["Types", "Inventory"]
---

# Create an inventory type

`POST /types/inventory`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/types/inventory`
- Auth: HTTP bearer

Creates a new inventory type. Unknown fields in the body are rejected.

```bash
curl -X POST https://api.faireplace.com/api/types/inventory \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Appliances",
    "description": "Kitchen and home appliances",
    "category_id": "550e8400-e29b-41d4-a716-446655440001",
    "is_active": true
  }'
```

## Request body

- CreateInventoryType: Request to create an inventory type. Unknown fields are rejected (`deny_unknown_fields`). Timestamps are server-generated.
  - `name` string, required: Name of the inventory type.
  - `description` string, nullable: Optional description.
  - `category_id` string, uuid, nullable: Optional reference to the inventory category.
  - `is_active` boolean: Whether the type is active. Defaults to `true` when omitted.

## Response `201`

Inventory type created.

- InventoryType: An inventory type (a category-of-thing used when describing inventory). Field names match the JSON payload exactly (snake_case, no renaming).
  - `id` string, uuid, required: Unique inventory type identifier (server-generated).
  - `name` string, required: Name of the inventory type.
  - `description` string, nullable: Optional description.
  - `category_id` string, uuid, nullable: Optional reference to the inventory category this type belongs to.
  - `is_active` boolean, required: Whether the inventory type is active.
  - `created_at` string, date-time, required: Creation timestamp (ISO 8601).
  - `updated_at` string, date-time, required: Last update timestamp (ISO 8601).

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
