---
title: "Creates a category"
method: POST
path: "/category"
tags: ["Category"]
---

# Creates a category

`POST /category`

## Request

- The document declares no server URL.
- Auth: API key in header `TWN-InstanceKey` and API key in header `TWN-Authentication`

## Request body

- CategoryApiModel
  - `CategoryId` integer, nullable
  - `Key` string, nullable
  - `Name` string, nullable
  - `Rank` integer
  - `Status` 'Active' | 'InActive'
  - `LandingPage` LandingPageApiModel
    - `FilterTemplateId` integer, nullable
    - `MerchandisingTemplateId` integer, nullable
    - `MerchandisingBuilderId` integer, nullable
  - `Parents` integer[], nullable
  - `Url` string, nullable
  - `LanguageId` integer, nullable

## Response `200`

OK

- integer

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/tweakwise/apis/app-api.md) - [All operations](https://skmtc.dev/tweakwise/apis/app-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tweakwise/apis/app-api/revisions/dc936bf76941?raw)
