---
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

- object
  - `data` MutableComponent
    - `name` string, required
    - `description` string
    - `access` 'private' | 'public'
    - `descriptor` object — Component descriptor (component.json) which contains a component meta information.
    - `distribution` union, required
      - object
        - `type` 'docker' | 'slug', required
        - `image` string, required — Docker image
        - `registrySecretId` string — ID of a secret, which contains Docker registry credentials
      - object
        - `type` 'docker' | 'slug', required
        - `slugUrl` string, required — URL to a slug, containing a compomponent source code
    - `owners` Owner[]
      - `id` string, required — External id of the owner
      - `type` string, required — Type to discriminate owner's type

## Response `200`

successful operation

- object
  - `data` MutableComponent
    - `name` string, required
    - `description` string
    - `access` 'private' | 'public'
    - `descriptor` object — Component descriptor (component.json) which contains a component meta information.
    - `distribution` union, required
      - object
        - `type` 'docker' | 'slug', required
        - `image` string, required — Docker image
        - `registrySecretId` string — ID of a secret, which contains Docker registry credentials
      - object
        - `type` 'docker' | 'slug', required
        - `slugUrl` string, required — URL to a slug, containing a compomponent source code
    - `owners` Owner[]
      - `id` string, required — External id of the owner
      - `type` string, required — Type to discriminate owner's type

## Other responses

- `401` — Access token is missing or invalid
- `404` — Component with given ID not found

## Changes

- **2019-05-16** `77e6b7addc6e` — 4 breaking, 10 info
  - the response property `data/access` became optional for the status `200`
  - the response property `data/description` became optional for the status `200`
  - the response property `data/descriptor` became optional for the status `200`
  - the response property `data/owners` became optional for the status `200`
  - …10 more

[Change history](https://skmtc.dev/openintegrationhub/apis/component-repository/changes/components/:id/patch.md)

---

[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/f5ca4f7f9951/schema)
