Repositories

Rename a repository

Record a new name for a repository whose directory does not carry its name. Only a server whose repository UUIDs are assigned by an auth provider accepts it.

patch/api/repos/{namespace}/{repo_name}/rename

Request

Path parameters

namespacestring required

Namespace of the repository

repo_namestring required

Name of the repository

Request body

repo_namestring required

What the repository is called from now on, recorded as its name hint. Refused when it is not a valid repository name.

Response

Repository renamed

statusstring required
status_messagestring required

Example response

{
  "repository": {
    "is_empty": false,
    "name": "ImageNet-1k",
    "namespace": "ox"
  },
  "status": "success",
  "status_message": "resource_found"
}

Changes

No recorded changes to this operation across all 1 revision of this API.