Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/group_import_export.md')
-rw-r--r--doc/api/group_import_export.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/api/group_import_export.md b/doc/api/group_import_export.md
index 0a431cfdfbf..212a62516f1 100644
--- a/doc/api/group_import_export.md
+++ b/doc/api/group_import_export.md
@@ -57,8 +57,12 @@ GET /groups/:id/export/download
| `id` | integer/string | yes | ID of the group owned by the authenticated user |
```shell
-curl --header "PRIVATE-TOKEN: <your_access_token>" --remote-header-name \
- --remote-name "https://gitlab.example.com/api/v4/groups/1/export/download"
+group=1
+token=secret
+curl --request GET\
+ --header "PRIVATE-TOKEN: ${token}" \
+ --output download_group_${group}.tar.gz \
+ "https://gitlab.example.com/api/v4/groups/${group}/export/download"
```
```shell