---
title: "Create Component"
method: POST
path: "/components"
tags: ["Components"]
---

# Create Component

`POST /components`

## Request body

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

## Response `200`

`Component`

## Other responses

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

## Changes

- **2026-06-26** `b7fcc33d06e5` — 3 breaking, 7 info
  - removed `#/components/schemas/ComponentStatusEnum, subschema #2` from the `status` request property `anyOf` list
  - request property `status` was restricted to a list of enum values
  - the `status` request property type/format changed from ``/`` to `string, null`/``
  - the request property `status` became nullable
  - …6 more
- **2025-12-02** `b912f4471de4` — 2 info
  - added the non-success response with the status `403`
  - added the optional property `data/attributes/pivot` to the response with the `200` status
- **2025-08-25** `c7bc597b862d` — 3 breaking, 2 warning, 1 info
  - the `data/relationships/group/data` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `data/relationships/group/data/id` from the response with the `200` status
  - removed the required property `data/relationships/group/data/type` from the response with the `200` status
  - removed the optional property `data/relationships/incidents/data/items/attributes` from the response with the `200` status
  - …2 more
- **2025-08-19** `3f2730e7a222` — 1 info
  - added the new `6.00` enum value to the request property `status/anyOf[subschema #1: ComponentStatusEnum]/`
- **2025-08-15** `5b3f1f21cf76` — 1 info
  - media type `application/json` was changed to a more specific media type `application/vnd.api+json` for the response status `200`

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