---
title: "Rename a repository's display name"
method: POST
path: "/api/repos/rename"
tags: ["repos"]
---

# Rename a repository's display name

`POST /api/repos/rename`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- RenameRepoInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `by_path` boolean, required
  - `identifier` string, required
  - `name` string, required

## Response `200`

OK

- RenameRepoOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `repo` Repo, required
    - `$schema` string, uri: A URL to the JSON Schema for this object.
    - `created_at` string, date-time, required
    - `id` integer, required
    - `identity` string
    - `name` string, required
    - `root_path` string, required

## Other responses

- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-10-14** `e348b02722c0`: 4 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the non-success response with the status `422`
  - added the non-success response with the status `500`
- **2026-10-02** `f4a08e7ffd79`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kenn-io/apis/roborev/changes/api/repos/rename/post.md)

---

[API](https://skmtc.dev/kenn-io/apis/roborev.md) - [All operations](https://skmtc.dev/kenn-io/apis/roborev/llms.txt) - [OpenAPI document](https://skmtc.dev/kenn-io/apis/roborev/revisions/5803a85073e3?raw)
