---
title: "Create Component Group"
method: POST
path: "/component-groups"
tags: ["Component Groups"]
---

# Create Component Group

`POST /component-groups`

## Request body

- CreateComponentGroupRequestData
  - `name` string, required
  - `order` integer, nullable
  - `visible` 0 | 1 | 2
  - `collapsed` 0 | 1 | 2
  - `order_column` 'id' | 'last_updated' | 'name' | 'manual' | 'status'
  - `order_direction` 'asc' | 'desc'
  - `components` integer[], nullable

## Response `200`

`ComponentGroup`

## Other responses

- `401` — Unauthenticated
- `403` — Authorization error
- `422` — Validation error

## Changes

- **2026-07-10** `4e4308be5bcf` — 22 breaking, 5 info
  - the request property `collapsed` became not nullable
  - the request property `order_column` became not nullable
  - the request property `order_direction` became not nullable
  - the request property `visible` became not nullable
  - …23 more
- **2026-06-26** `b7fcc33d06e5` — 9 breaking, 13 info
  - removed `#/components/schemas/ComponentGroupVisibilityEnum, subschema #2` from the `collapsed` request property `anyOf` list
  - removed `#/components/schemas/ResourceOrderColumnEnum, subschema #2` from the `order_column` request property `anyOf` list
  - removed `#/components/schemas/ResourceOrderDirectionEnum, subschema #2` from the `order_direction` request property `anyOf` list
  - request property `collapsed` was restricted to a list of enum values
  - …18 more
- **2026-06-25** `89a65793461c` — 4 info
  - added the new optional request property `order_column`
  - added the new optional request property `order_direction`
  - added the required property `data/attributes/order_column` to the response with the `200` status
  - added the required property `data/attributes/order_direction` to the response with the `200` status
- **2026-06-18** `1584b3ec7df7` — 2 info
  - added the new optional request property `collapsed`
  - added the required property `data/attributes/collapsed` to the response with the `200` status
- **2025-12-02** `b912f4471de4` — 1 info
  - added the non-success response with the status `403`

[Full history](https://skmtc.dev/cachethq/apis/cachet/changes/component-groups/post.md)

---

[API](https://skmtc.dev/cachethq/apis/cachet.md) · [All operations](https://skmtc.dev/cachethq/apis/cachet/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cachethq/cachet/revisions/4e4308be5bcf/schema)
