---
title: "Create category"
method: POST
path: "/menu/{locale}/categories"
tags: ["Menu"]
---

# Create category

`POST /menu/{locale}/categories`

Creates a new menu category. Supports subcategories via parent_category and multi-language translations.

## Path parameters

- `locale` integer, required

## Request body

- CreateCategoryRequest
  - `name` string, required
  - `description` string
  - `parent_category` integer, nullable — Parent category ID for subcategories
  - `order_position` integer
  - `is_active` 0 | 1
  - `translations` Translation[] — Multi-language translations
    - `lang` string — Language code (e.g. en, pl, de)
    - `name` string
    - `description` string

## Response `200`

Category created

- object
  - `success` boolean
  - `data` CategoryDetail
    - `id` integer
    - `name` string
    - `description` string, nullable
    - `parent_category` integer, nullable
    - `order_position` integer
    - `is_active` integer
    - `translations` Translation[]
      - `lang` string — Language code (e.g. en, pl, de)
      - `name` string
      - `description` string

## Other responses

- `403` — API key not authorized for this locale or missing required scope
- `404` — Parent category not found
- `422` — Validation error

---

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