Import repository from Bitbucket Server
POST
/api/v4/import/bitbucket_server
Imports a repository from Bitbucket Server to GitLab. The Bitbucket Project Key is only used for finding the repository in Bitbucket. You must specify a target_namespace if you want to import the repository to a GitLab group.
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ” Media type application/json
object
bitbucket_server_url
required
Bitbucket Server URL
string
bitbucket_server_username
required
BitBucket Server Username
string
personal_access_token
required
BitBucket Server personal access token/password
string
bitbucket_server_project
required
BitBucket Server Project Key
string
bitbucket_server_repo
required
BitBucket Server Repository Name
string
new_name
New repo name
string
new_namespace
Namespace to import repo into
string
timeout_strategy
Strategy for behavior on timeouts
string
Responses
Section titled “ Responses ”Created
Media type application/json
object
id
integer
name
string
full_path
string
full_name
string
refs_url
string
forked
boolean
Example
{ "id": 1, "name": "GitLab", "full_path": "gitlab-org/gitlab", "full_name": "GitLab Org / GitLab", "forked": true}Bad request
Unauthorized
Forbidden
Unprocessable entity
Service unavailable