---
title: "Create a category"
method: POST
path: "/api/v1/categories"
---

# Create a category

`POST /api/v1/categories`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/categories`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Request body

- object
  - `name` string, required
  - `description` string
  - `sort` integer
  - `visible` boolean
  - `colour` 'sage' | 'clay' | 'mist' | 'sand' | 'lilac' | 'rose' | 'teal' | 'ochre' | 'slate' | 'plum'

## Response `201`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

## Changes

- **2026-10-19** `81704199cd37`: 1 info
  - added the new optional request property `colour`

[Operation history](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/changes/api/v1/categories/post.md)

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
