summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorMarc van Gend <info@marcvangend.nl>2017-01-24 23:13:30 +0000
committerMarc van Gend <info@marcvangend.nl>2017-01-24 23:13:30 +0000
commitde8eeac556940471761641433849667fb2f146e6 (patch)
tree0f99c588f0da6fc5730b612b220a6728b2664ad1 /doc/api
parentd55839120e92be48b30d248ce9d72a19be038c79 (diff)
downloadgitlab-ce-de8eeac556940471761641433849667fb2f146e6.tar.gz
Update enviroments.md - example CURL requests had a typo in the URL
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/enviroments.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/enviroments.md b/doc/api/enviroments.md
index 1299aca8c45..e0ee20d9610 100644
--- a/doc/api/enviroments.md
+++ b/doc/api/enviroments.md
@@ -78,7 +78,7 @@ PUT /projects/:id/environments/:environments_id
| `external_url` | string | no | The new external_url |
```bash
-curl --request PUT --data "name=staging&external_url=https://staging.example.gitlab.com" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environment/1"
+curl --request PUT --data "name=staging&external_url=https://staging.example.gitlab.com" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments/1"
```
Example response:
@@ -106,7 +106,7 @@ DELETE /projects/:id/environments/:environment_id
| `environment_id` | integer | yes | The ID of the environment |
```bash
-curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environment/1"
+curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments/1"
```
Example response: