summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-11-18 13:52:49 +0000
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-11-18 13:52:49 +0000
commit3be717a34c8a6717583a6ab2e26c246e4f7be965 (patch)
tree10818b7625f23362e4681110f85791c5ff9069af
parent2343b83098d91434748fba48b3b5de147bd805ef (diff)
parent8996548e1353285a934fff41caa99a0da434c24b (diff)
downloadgitlab-ce-3be717a34c8a6717583a6ab2e26c246e4f7be965.tar.gz
Merge branch 'rs-project-archive-doc-fix' into 'master'
Correct curl examples for archive and unarchive project API [ci skip] See merge request !7559
-rw-r--r--doc/api/projects.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index bbb3bfb4995..467a880ac13 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -850,7 +850,7 @@ POST /projects/:id/archive
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
```bash
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/archive"
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/archive"
```
Example response:
@@ -939,7 +939,7 @@ POST /projects/:id/unarchive
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
```bash
-curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/unarchive"
+curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/unarchive"
```
Example response: