---
title: "Create Category"
method: POST
path: "/api/v1/home/categories"
tags: ["api", "api", "home"]
---

# Create Category

`POST /api/v1/home/categories`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/home/categories`
- Auth: HTTP bearer

## Request body

- HomeCategoryCreate
  - `name` string, required
  - `description` string
  - `image` string
  - `type` string
  - `filter` HomeCategoryFilter[]
    - `key` string
    - `name` string
  - `sort_order` integer
  - `is_active` boolean

## Response `201`

Successful Response

- HomeCategoryAdmin
  - `id` integer, required
  - `name` string
  - `description` string
  - `image` string
  - `type` string
  - `filter` HomeCategoryFilter[]
    - `key` string
    - `name` string
  - `sort_order` integer
  - `is_active` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
