---
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`

## Request

- Base URL: `https://api.moneyhub.co.uk/v3`
- URL: `https://api.moneyhub.co.uk/v3/categories`
- Auth: API key in header `Authorization`

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.dev/moneyhubenterprise/apis/moneyhub-data-api-v3.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/revisions/2e08b5dbee56?raw)
