---
title: "Update Component"
method: PUT
path: "/components/{component}"
tags: ["Components"]
---

# Update Component

`PUT /components/{component}`

## Path parameters

- `component` integer, required

## Request body

- UpdateComponentRequestData
  - `name` string, nullable
  - `description` string, nullable
  - `status` 1 | 2 | 3 | 4 | 5
  - `link` string, nullable
  - `order` integer, nullable
  - `enabled` boolean
  - `component_group_id` integer, nullable

## Response `200`

`Component`

- object
  - `data` Component, required
    - `id` string, required
    - `type` 'components', required
    - `attributes` object
      - `id` integer, required
      - `name` string, required
      - `description` string, nullable, required
      - `link` string, nullable, required
      - `order` integer, nullable, required
      - `status` object, required
        - `human` string, required
        - `value` string, required
      - `enabled` boolean, required
      - `meta` unknown[], nullable, required
        - unknown
      - `created` object, required
        - `human` string, required
        - `string` string, required
      - `updated` object, required
        - `human` string, required
        - `string` string, required
    - `relationships` object
      - `group` object
        - `data` ComponentGroupIdentifier, required
          - `type` 'componentGroups', required
          - `id` string, required
      - `incidents` object
        - `data` Incident[], required
          - `id` string, required
          - `type` 'incidents', required
          - `attributes` object
            - `id` integer, required
            - `guid` string, required
            - `name` string, required
            - `message` string, required
            - `component_id` integer, nullable, required
            - `visible` 0 | 1 | 2, required
            - `stickied` boolean, required
            - `notifications` integer, required
            - `status` object, required
              - …
            - `occurred` object, required
              - …
            - `created` object, required
              - …
            - `updated` object, required
              - …
          - `relationships` object
            - `components` object
              - …
            - `updates` object
              - …
            - `user` object
              - …

## Other responses

- `401` — Unauthenticated
- `404` — Not found
- `422` — Validation error

## Changes

- **2025-06-02** `9ad32c73fe39` — 16 breaking, 3 warning
  - the response property `data/attributes/description` became nullable for the status `200`
  - the response property `data/attributes/link` became nullable for the status `200`
  - the response property `data/attributes/meta` became nullable for the status `200`
  - the response property `data/attributes/order` became nullable for the status `200`
  - …15 more
- **2025-05-29** `87e56b3f8fd7` — 3 warning
  - removed the optional property `data/relationships/group/data/attributes` from the response with the `200` status
  - removed the optional property `data/relationships/group/data/relationships` from the response with the `200` status
  - removed the optional property `data/relationships/incidents/data/items/relationships/user/data/attributes` from the response with the `200` status

[Change history](https://skmtc.dev/cachethq/apis/cachet/changes/components/:component/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/9ad32c73fe39/schema)
