---
title: "Update a component"
method: PATCH
path: "/components/{id}"
tags: ["components"]
---

# Update a component

`PATCH /components/{id}`

Update a component

## Path parameters

- `id` string, required

## Request body

- Body1
  - `data` MutableComponent
    - `name` string, required
    - `description` string, required
    - `access` 'private' | 'public', required
    - `descriptor` object, required
    - `distribution` union, required
      - object
        - `type` 'docker' | 'slug', required
        - `image` string, required
        - `registrySecretId` string
      - object
        - `type` 'docker' | 'slug', required
        - `slugUrl` string, required
    - `owners` Owner[], required
      - `id` string, required — External id of the owner
      - `type` string, required — Type to discriminate owner's type

## Response `200`

successful operation

- Body1
  - `data` MutableComponent
    - `name` string, required
    - `description` string, required
    - `access` 'private' | 'public', required
    - `descriptor` object, required
    - `distribution` union, required
      - object
        - `type` 'docker' | 'slug', required
        - `image` string, required
        - `registrySecretId` string
      - object
        - `type` 'docker' | 'slug', required
        - `slugUrl` string, required
    - `owners` Owner[], required
      - `id` string, required — External id of the owner
      - `type` string, required — Type to discriminate owner's type

## Other responses

- `405` — Invalid input

---

[API](https://skmtc.dev/openintegrationhub/apis/component-repository.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/component-repository/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/component-repository/revisions/59248750b20a/schema)
