Repositories

Transfer repository namespace

Transfer a repository to a different namespace.

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

Request

Path parameters

namespacestring required

Current namespace of the repository

repo_namestring required

Name of the repository

Request body

namespacestring required

The destination namespace, as addressed on disk. A UUID where a control plane owns namespaces, and the namespace's name where the server owns its own.

namespace_namestring nullable

What the destination namespace is called, where namespace addresses it by UUID instead. Recorded as the repository's namespace hint, and refused when it is not a valid namespace name. A server that owns its own namespaces takes the name from the namespace position and ignores this.

Response

Repository transferred successfully

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.