---
title: "Update registry credential"
method: PATCH
path: "/registrycredentials/{registryCredentialId}"
tags: ["Registry Credentials"]
---

# Update registry credential

`PATCH /registrycredentials/{registryCredentialId}`

Update the registry credential with the provided ID. Services that use this credential must be redeployed to use updated values.

## Request body

- object
  - `registry` 'GITHUB' | 'GITLAB' | 'DOCKER' | 'GOOGLE_ARTIFACT' | 'AWS_ECR', required — The registry to use this credential with
  - `name` string, required
  - `username` string, required
  - `authToken` string, required

## Response `200`

OK

- RegistryCredential
  - `id` string, required — Unique identifier for this credential
  - `name` string, required — Descriptive name for this credential
  - `registry` 'GITHUB' | 'GITLAB' | 'DOCKER' | 'GOOGLE_ARTIFACT' | 'AWS_ECR', required — The registry to use this credential with
  - `username` string, required — The username associated with the credential
  - `updatedAt` string, date-time, required — Last updated time for the credential

## Other responses

- `400` — The request could not be understood by the server.
- `401` — Authorization information is missing or invalid.
- `402` — You must enter payment information to perform this request.
- `403` — You do not have permissions for the requested resource.
- `404` — Unable to find the requested resource.
- `406` — Unable to generate preferred media types as specified by Accept request header.
- `409` — The current state of the resource conflicts with this request.
- `410` — The requested resource is no longer available.
- `429` — Rate limit has been surpassed.
- `500` — An unexpected server error has occurred.
- `503` — Server currently unavailable.

---

[API](https://skmtc.dev/render/apis/render-public-api.md) · [All operations](https://skmtc.dev/render/apis/render-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/render/render-public-api/revisions/80e0ff74d033/schema)
