---
title: "Update Component Group"
method: PUT
path: "/component-groups/{componentGroup}"
tags: ["Component Groups"]
---

# Update Component Group

`PUT /component-groups/{componentGroup}`

## Path parameters

- `componentGroup` integer, required

## Request body

- UpdateComponentGroupRequestData
  - `name` string, nullable
  - `order` integer, nullable
  - `visible` boolean, nullable
  - `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
- `404` — Not found
- `422` — Validation error

## Changes

- **2026-07-10** `4e4308be5bcf` — 20 breaking, 4 info
  - the request property `collapsed` became not nullable
  - the request property `order_column` became not nullable
  - the request property `order_direction` became not nullable
  - removed the enum value `0` of the request property `collapsed`
  - …20 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
- …earlier changes not shown

[Full history](https://skmtc.dev/cachethq/apis/cachet/changes/component-groups/:componentGroup/put.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)
