diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-24 03:08:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-24 03:08:35 +0300 |
commit | b48875192d4c343976efcfb1e8ee988ffabab163 (patch) | |
tree | 7f14dff706dc737514f2e96f62afda05b2f69f1a /doc/api/import.md | |
parent | e679965983c591a9f009f6356b67a844582ca1bb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/import.md')
-rw-r--r-- | doc/api/import.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/import.md b/doc/api/import.md index e377853ade0..d3996f61c5e 100644 --- a/doc/api/import.md +++ b/doc/api/import.md @@ -13,10 +13,10 @@ POST /import/github | `personal_access_token` | string | yes | GitHub personal access token | | `repo_id` | integer | yes | GitHub repository ID | | `new_name` | string | no | New repository name | -| `target_namespace` | string | yes | Namespace to import repository into | +| `target_namespace` | string | yes | Namespace to import repository into. Supports subgroups like `/namespace/subgroup`. | ```shell -curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "personal_access_token=abc123&repo_id=12345&target_namespace=root" "https://gitlab.example.com/api/v4/import/github" +curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "personal_access_token=abc123&repo_id=12345&target_namespace=group/subgroup" "https://gitlab.example.com/api/v4/import/github" ``` Example response: @@ -51,7 +51,7 @@ POST /import/bitbucket_server | `bitbucket_server_project` | string | yes | Bitbucket Project Key | | `bitbucket_server_repo` | string | yes | Bitbucket Repository Name | | `new_name` | string | no | New repository name | -| `target_namespace` | string | no | Namespace to import repository into | +| `target_namespace` | string | no | Namespace to import repository into. Supports subgroups like `/namespace/subgroup` | ```shell curl --request POST \ |