Repositories

转移仓库。Transfer a repository.

将仓库转移到其他组织。 Transfer the repository to another organization. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-manage:rw,repo-code:rw

post/{repo}/-/transfer

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/transfer
  • Auth: API key in header Authorization

Path parameters

repostring required

资源路径。Resource slug.

Request body

sourcestring

资源(仓库/制品库等)当前所在的源路径。Current source path of the resource (repo/registry, etc.).

targetstring

资源要转移到的目标路径。Target path to which the resource is transferred.

Response

OK

Changes

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