---
title: "Створити категорію"
method: POST
path: "/materials/categories"
tags: ["Materials"]
---

# Створити категорію

`POST /materials/categories`

**Метод створює категорію (папку) для матеріалу на складі.**

## Query parameters

- `office_hash_id` string

## Request body

- ProductCategoryAttributes — Дані категорії для товарів
  - `name` string, required — Назва
  - `parent_id` number — Ідентифікатор батьківської категорії

## Response `201`

Успішно створено

- CreatedResponse
  - `id` integer — Ідентифікатор сутності
  - `created_at` string — Дата та час створення
  - `updated_at` string — Дата та час оновлення

## Other responses

- `422` — Помилка валідації

---

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