---
title: "Update repository"
method: PUT
path: "/projects/{project_name}/repositories/{repository_name}"
tags: ["repository"]
---

# Update repository

`PUT /projects/{project_name}/repositories/{repository_name}`

Update the repository specified by name

## Path parameters

- `project_name` string, required
- `repository_name` string, required

## Headers

- `X-Request-Id` string

## Request body

- Repository
  - `id` integer — The ID of the repository
  - `project_id` integer — The ID of the project that the repository belongs to
  - `name` string — The name of the repository
  - `description` string — The description of the repository
  - `artifact_count` integer — The count of the artifacts inside the repository
  - `pull_count` integer — The count that the artifact inside the repository pulled
  - `creation_time` string, date-time, nullable — The creation time of the repository
  - `update_time` string, date-time — The update time of the repository

## Response `200`

Success

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `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)
