---
title: "Create a category"
method: POST
path: "/taxonomies/categories"
tags: ["Categories"]
---

# Create a category

`POST /taxonomies/categories`

## Request

- Base URL: `https://api.cavuno.com/v1`
- URL: `https://api.cavuno.com/v1/taxonomies/categories`
- Auth: HTTP bearer

## Request body

- CreateCategoryBody
  - `name` string, required
  - `slug` string
  - `parentId` string
  - `aliasSlugs` string[]
  - `sourceLocale` string

## Response `201`

Created.

- Category
  - `id` string, required
  - `object` 'category', required
  - `name` string, required
  - `slug` string, required
  - `aliasSlugs` string[], required
  - `sourceLocale` string, nullable, required
  - `parentId` string, nullable, required
  - `createdAt` string, required
  - `children` unknown[]
    - unknown

## Other responses

- `409`: Slug taken.

## Changes

- **2026-10-19** `c34152c38176`: 1 info
  - added the optional property `error/upgrade` to the response with the `409` status

[Operation history](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/changes/taxonomies/categories/post.md)

---

[API](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api.md) · [All operations](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/revisions/d5974dabff14?raw)
