---
title: "Category create."
method: POST
path: "/rest/api/warehouse/category/"
tags: ["Warehouse"]
---

# Category create.

`POST /rest/api/warehouse/category/`

## Request body

- CategoryCreateModel[]
  - `name` string, required
  - `parentId` integer, nullable
  - `sort` integer, required

## Response `200`

Nothing to create

- unknown

## Other responses

- `201` — Create categories correctly
- `401` — Authorization failed
- `413` — Too many Category objects submitted (max 512)
- `422` — Validation error

---

[API](https://skmtc.dev/apilo/apis/apilo-rest-api.md) · [All operations](https://skmtc.dev/apilo/apis/apilo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apilo/apilo-rest-api/revisions/a0f9dcdba6cc/schema)
