---
title: "Update the registry"
method: PUT
path: "/registries/{id}"
tags: ["registry"]
---

# Update the registry

`PUT /registries/{id}`

Update the registry

## Path parameters

- `id` integer, required

## Headers

- `X-Request-Id` string

## Request body

- RegistryUpdate
  - `name` string, nullable — The registry name.
  - `description` string, nullable — Description of the registry.
  - `url` string, nullable — The registry URL.
  - `credential_type` string, nullable — Credential type of the registry, e.g. 'basic'.
  - `access_key` string, nullable — The registry access key.
  - `access_secret` string, nullable — The registry access secret.
  - `insecure` boolean, nullable — Whether or not the certificate will be verified when Harbor tries to access the server.
  - `ca_certificate` string, nullable — The PEM-encoded CA certificate for this registry endpoint.

## Response `200`

Success

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `500` — Internal server error

---

[API](https://skmtc.dev/cerit/apis/harbor-api.md) · [All operations](https://skmtc.dev/cerit/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cerit/harbor-api/revisions/62d78801f8df/schema)
