---
title: "Create a new category"
method: POST
path: "/v1/category"
tags: ["Category"]
---

# Create a new category

`POST /v1/category`

## Request

- Base URL: `https://api.finalpos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.finalpos.com/v1/category`
- Auth: API key in header `x-api-key`

Creates a new category record.

## Request body

- CategoryCreateDto
  - `externalId` string: External ID of the category.
  - `name` string, required: Name of the category.
  - `description` string: Description of the category.
  - `image` string: Image of the category.
  - `parentId` string: Parent ID of the category.
  - `menuOrder` number: Menu order of the category.
  - `source` string: Source of the category.

## Response `201`

The category has been successfully created.

- CategoryResponseDto
  - `id` string: Unique identifier for the Category.
  - `createdAt` string, date-time: Timestamp when the Category was created.
  - `updatedAt` string, date-time: Timestamp when the Category was last updated.
  - `companyId` string: Company ID associated with the Category.
  - `externalId` string: External ID of the category.
  - `name` string: Name of the category.
  - `description` string: Description of the category.
  - `image` string: Image of the category.
  - `parentId` string: Parent ID of the category.
  - `menuOrder` number: Menu order of the category.
  - `source` string: Source of the category.

## Other responses

- `400`: Bad request. Returns validation errors or other request-related errors.

---

[API](https://skmtc.dev/finalpos/apis/final-pos-public-api.md) · [All operations](https://skmtc.dev/finalpos/apis/final-pos-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/finalpos/apis/final-pos-public-api/revisions/6a6842dcb479?raw)
