Update an import
An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API request. If no parameters are provided, the import will be restarted.
Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress will
have the status detection_found_multiple and the Import Progress response will include a project_choices array.
You can select the project to import by providing one of the objects in the project_choices array in the update request.
[!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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Request Body
Section titled “ Request Body ”object
The username to provide to the originating repository.
The password to provide to the originating repository.
The type of version control system you are migrating from.
For a tfvc import, the name of the project that is being imported.
Examples
Update authentication for an import
{ "vcs_username": "octocat", "vcs_password": "secret"}Updating the project choice
{ "vcs": "tfvc", "tfvc_project": "project1", "human_name": "project1 (tfs)"}Restarting an import
Responses
Section titled “ Responses ”Response
A repository import from an external source.
object
The URL of the originating repository.
object
Examples
Example 1
{ "vcs": "subversion", "use_lfs": true, "vcs_url": "http://svn.example.com/svn/myproject", "status": "detecting", "url": "https://api.github.com/repos/octocat/socm/import", "html_url": "https://import.github.com/octocat/socm/import", "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", "repository_url": "https://api.github.com/repos/octocat/socm"}Example 2
{ "vcs": "tfvc", "use_lfs": true, "vcs_url": "http://tfs.example.com/tfs/myproject", "tfvc_project": "project1", "status": "importing", "status_text": "Importing...", "has_large_files": false, "large_files_size": 0, "large_files_count": 0, "authors_count": 0, "commit_count": 1042, "url": "https://api.github.com/repos/octocat/socm/import", "html_url": "https://import.github.com/octocat/socm/import", "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", "repository_url": "https://api.github.com/repos/octocat/socm"}Response
{ "vcs": "subversion", "use_lfs": true, "vcs_url": "http://svn.example.com/svn/myproject", "status": "importing", "status_text": "Importing...", "has_large_files": false, "large_files_size": 0, "large_files_count": 0, "authors_count": 0, "commit_count": 1042, "url": "https://api.github.com/repos/octocat/socm/import", "html_url": "https://import.github.com/octocat/socm/import", "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", "repository_url": "https://api.github.com/repos/octocat/socm"}Unavailable due to service under maintenance.
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}