v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
migrations

Start an import

Start a source import to a GitHub Enterprise Cloud repository using GitHub Enterprise Cloud Importer. Importing into a GitHub Enterprise Cloud repository with GitHub Actions enabled is not supported and will return a status 422 Unprocessable Entity response.

[!WARNING] Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog.

put/repos/{owner}/{repo}/import

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

vcs_urlstring required

The URL of the originating repository.

vcs'subversion' | 'git' | 'mercurial' | 'tfvc'

The originating VCS type. Without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.

vcs_usernamestring

If authentication is required, the username to provide to vcs_url.

vcs_passwordstring

If authentication is required, the password to provide to vcs_url.

tfvc_projectstring

For a tfvc import, the name of the project that is being imported.

Response

Response

vcsstring nullable required
use_lfsboolean
vcs_urlstring required

The URL of the originating repository.

svc_rootstring
tfvc_projectstring
status'auth' | 'error' | 'none' | 'detecting' | 'choose' | 'auth_failed' | 'importing' | 'mapping' | 'waiting_to_push' | 'pushing' | 'complete' | 'setup' | 'unknown' | 'detection_found_multiple' | 'detection_found_nothing' | 'detection_needs_auth' required
status_textstring nullable
failed_stepstring nullable
error_messagestring nullable
import_percentinteger nullable
commit_countinteger nullable
push_percentinteger nullable
has_large_filesboolean
large_files_sizeinteger
large_files_countinteger
messagestring
authors_countinteger nullable
urlstring uri required
html_urlstring uri required
authors_urlstring uri required
repository_urlstring uri required
svn_rootstring