---
title: "Tworzy nową kategorię"
method: POST
path: "/categories"
tags: ["Kategorie"]
---

# Tworzy nową kategorię

`POST /categories`

Tworzy nową kategorię

## Request body

- CategoryDetails
  - `datacells` object[]
    - `datacell_id` integer — Identyfikator pola danych
    - `language_id` integer — Identyfikator języka
    - `text` string — Opis pola danych
  - `id` integer — Identyfikator kategorii
  - `languages` object[]
    - `language_id` integer — Identyfikator języka
    - `title` string — Nazwa
  - `parent` integer — Identyfikator kategorii - rodzica
  - `status` integer — Status aktywności (0/1)

## Response `200`

Sukces

- object
  - `id` integer

## Other responses

- `401` — Błąd autoryzacji
- `404` — Błąd - jeden z elementów w zapytaniu nie został znaleziony w zbiorze

---

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