---
title: "Updates the upstream registry credentials for a repository in the project."
method: PATCH
path: "/projects/{project_id}/ccr/repositories/{repository_id}"
tags: ["Ccr", "Container Registry"]
---

# Updates the upstream registry credentials for a repository in the project.

`PATCH /projects/{project_id}/ccr/repositories/{repository_id}`

Updates the username and password credentials for the upstream registry
of a pull-through-cache repository.

## Path parameters

- `project_id` string, required
- `repository_id` string, required

## Request body

- UpstreamRegistryCredentials
  - `password` string — Password used to authenticate to the upstream registry.
  - `username` string — Username used to authenticate to the upstream registry.

## Response `204`

Empty Response

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `403` — Error Permissions
- `500` — Error Internal Server

---

[API](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b?raw)
