---
title: "Update a category group"
method: PUT
path: "/api/external/v2/category_groups/{id}"
tags: ["Category Groups"]
---

# Update a category group

`PUT /api/external/v2/category_groups/{id}`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/v2/category_groups/{id}`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `categories:all`

This endpoint updates a category group.

> ℹ️
> This endpoint requires the following scope: `categories:all`

## Path parameters

- `id` string, required

## Headers

- `X-Company-Id` string

## Request body

- object
  - `label` string, required
  - `kind` 'profit_and_loss' | 'treasury' | 'building'

## Response `200`

Returns the updated category group

- object
  - `id` integer, required
  - `label` string, required
  - `categories` object, required
    - `url` string, required: URL to get the categories of the group.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found
- `422`: Unprocessable content

## Changes

- **2026-11-03** `871f863307e5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/category_groups/:id/put.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
