Repositories

Migrate a repository

post/repos/migrate

Request

  • Base URL
    https://gogs.example.com/api/v1
  • Auth
    API key in header Authorization

Request body

clone_addrstring required
auth_usernamestring
auth_passwordstring
uidinteger required
repo_namestring required
mirrorboolean
privateboolean
descriptionstring

Response

Created

idinteger
namestring
full_namestring
descriptionstring
privateboolean
forkboolean
parentRepository circular
emptyboolean
mirrorboolean
sizeinteger
html_urlstring
ssh_urlstring
clone_urlstring
websitestring
stars_countinteger
forks_countinteger
watchers_countinteger
open_issues_countinteger
default_branchstring
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 3 revisions of this API.