summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-07-26 14:19:37 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-07-29 13:54:45 +0200
commit76e9b68439510af5c783a81b93944f1c8d96d150 (patch)
tree62f4dde6c0caa56aa9ebbbdd31df9a215767dc87 /doc/api
parent84cd2120952e7ee4095cb4b5d7c959f2c11610c5 (diff)
downloadgitlab-ce-76e9b68439510af5c783a81b93944f1c8d96d150.tar.gz
Incorporate feedback
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/enviroments.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/enviroments.md b/doc/api/enviroments.md
index c4b844fe77e..16bf2627fef 100644
--- a/doc/api/enviroments.md
+++ b/doc/api/enviroments.md
@@ -32,8 +32,7 @@ Example response:
Creates a new environment with the given name and external_url.
-It returns 200 if the environment was successfully created, 400 for wrong parameters
-and 409 if the environment already exists.
+It returns 200 if the environment was successfully created, 400 for wrong parameters.
```
POST /projects/:id/environment
@@ -43,7 +42,7 @@ POST /projects/:id/environment
| ------------- | ------- | -------- | ---------------------------- |
| `id` | integer | yes | The ID of the project |
| `name` | string | yes | The name of the environment |
-| `external_url` | string | yes | Place to link to for this environment |
+| `external_url` | string | no | Place to link to for this environment |
```bash
curl --data "name=deploy&external_url=https://deploy.example.gitlab.com" -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments"
@@ -88,7 +87,7 @@ Example response:
## Edit an existing environment
-Updates an existing environments name and/or external_url.
+Updates an existing environment's name and/or external_url.
It returns 200 if the label was successfully updated, In case of an error, an additional error message is returned.