Skip to main content
PATCH
/
api
/
repos
/
{namespace}
/
{repo_name}
/
transfer
Transfer repository namespace
curl --request PATCH \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/transfer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "namespace": "new_org"
}
'
{
  "repository": {
    "is_empty": false,
    "name": "ImageNet-1k",
    "namespace": "ox"
  },
  "status": "success",
  "status_message": "resource_found"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

Current namespace of the repository

repo_name
string
required

Name of the repository

Body

application/json

Target namespace to transfer the repository to.

namespace
string
required

Response

Repository transferred successfully

repository
object
required
Example:
{
"is_empty": false,
"name": "ImageNet-1k",
"namespace": "ox"
}
status
string
required
status_message
string
required