Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/hub/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Payload:

```js
payload = {
"type":"type",
"type":"model",
"name":"name",
"organization": "organization",
"private":"private",
Expand All @@ -193,7 +193,7 @@ Payload:

```js
payload = {
"type": "type",
"type": "model",
"name": "name",
"organization": "organization",
}
Expand All @@ -219,12 +219,18 @@ This is equivalent to `huggingface_hub.update_repo_visibility()`.

Move a repository (rename within the same namespace or transfer from user to organization).

Parameters:
- `fromRepo`: repo to rename.
- `toRepo`: new name of the repo.
- `type`: Type of repo (dataset or space; model by default).

Payload:

```js
payload = {
"fromRepo" : "namespace/repo_name",
"toRepo" : "namespace2/repo_name2"
"toRepo" : "namespace2/repo_name2",
"type": "model",
}
```

Expand Down