---
title: "Add a new custom category for a user"
method: POST
path: "/categories"
tags: ["categories"]
---

# Add a new custom category for a user

`POST /categories`

Requires **categories:write** scope.

## Request body

- CategoryPost
  - `group` string, required — The id of the category group that the custom category should be part of
  - `name` string, required — The name of the custom category

## Response `200`

Successful Category Response

- object
  - `data` Category
    - `categoryId` string, required — The id of the category. Custom categories are prefixed with 'cus:'
    - `name` string — The name of the category - only applicable for custom categories
    - `key` string — A text key for standard categories
    - `group` string, required — The category group to which the category belongs
  - `links` Links
    - `next` string, uri — The url to retrieve the next page of results from
    - `prev` string, uri — The url to retrieve the previous page of results from
    - `self` string, uri, required — The url of the current resource(s)
  - `meta` object

## Other responses

- `400` — Unsuccessful Response - Bad request - Missing query parameters - Missing body properties
- `401` — Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403` — Unsuccessful Response - Forbidden - Invalid scopes

---

[API](https://skmtc.net/moneyhub/apis/moneyhub-data-api.md) · [All operations](https://skmtc.net/moneyhub/apis/moneyhub-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moneyhub/moneyhub-data-api/revisions/f2eb965eb9af/schema)
