diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-28 03:08:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-28 03:08:34 +0300 |
commit | d690a8d62bc0abd5ab937822ff7a1b9f1e7b1a91 (patch) | |
tree | cede6bf5f7560522c7917378f8c09439b267a6e7 /doc/api/import.md | |
parent | d440531cf8d33834541da20aa2427c726d39e5ef (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/import.md')
-rw-r--r-- | doc/api/import.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/api/import.md b/doc/api/import.md index d3996f61c5e..17abb90d8e7 100644 --- a/doc/api/import.md +++ b/doc/api/import.md @@ -16,7 +16,16 @@ POST /import/github | `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=group/subgroup" "https://gitlab.example.com/api/v4/import/github" +curl --request POST \ + --url "https://gitlab.example.com/api/v4/import/github" \ + --header "content-type: application/json" \ + --header "PRIVATE-TOKEN: <your_access_token>" \ + --data '{ + "personal_access_token": "aBc123abC12aBc123abC12abC123+_A/c123", + "repo_id": "12345", + "target_namespace": "group/subgroup", + "new_name": "NEW-NAME" +}' ``` Example response: |