Start A Repository Migration
Starts an asynchronous migration of a source Git repository into the project’s working tree and returns the identifier of the migration. Poll the migration-status endpoint to track progress.
Authorizations
a valid bearer token
Headers
Personal access token or OAuth token used to authenticate with the target Git provider when pushing content. Required for private target repositories unless targetEnterpriseOauthId is supplied; omit for public repositories.
Path Parameters
The unique identifier of the project that owns the working tree.
Body
Repository migration request describing the target repository to migrate the project's working tree to.
The migration mode. MIRROR_PUSH copies the full working tree to the target repository; RECONFIGURE points the project at the target repository without pushing content.
MIRROR_PUSH, RECONFIGURE The clone URL of the target Git repository to migrate to.
1"https://github.com/acme/new-pipelines.git"
The display name of the target repository.
1"new-pipelines"
The Git provider hosting the target repository. One of GITHUB, GITLAB, AZURE_DEVOPS. Accepts any case.
GITHUB, GITLAB, AZURE_DEVOPS "GITHUB"
Provider-specific parameters for the target repository, as key/value pairs. Required for some providers. For Azure DevOps, supply organization, repositoryId and tenantId. See the create-repository provider-specific request schemas for field details.
The unique identifier of the enterprise OAuth connection used to authenticate with the target repository. Omit for public or personal repositories.
Response
Repository migration accepted and started
The result of accepting a repository migration request.
The unique identifier of the started repository migration. Use this to poll the migration-status endpoint.
