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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-02 21:08:32 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-02 21:08:32 +0300
commitf3e7bc80608c100227030030a6a601897f8e4ff9 (patch)
tree65afc2ae0ee2ccf7cf8d4efbf44077f816cade09 /doc/api/environments.md
parenteea1fbf9f980fed108601412b63e627d3eebd46d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/environments.md')
-rw-r--r--doc/api/environments.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/environments.md b/doc/api/environments.md
index e03feef9035..5f6bdc251ba 100644
--- a/doc/api/environments.md
+++ b/doc/api/environments.md
@@ -141,7 +141,7 @@ Example of response
## Create a new environment
-Creates a new environment with the given name and external_url.
+Creates a new environment with the given name and `external_url`.
It returns `201` if the environment was successfully created, `400` for wrong parameters.
@@ -173,7 +173,7 @@ Example response:
## Edit an existing environment
-Updates an existing environment's name and/or external_url.
+Updates an existing environment's name and/or `external_url`.
It returns `200` if the environment was successfully updated. In case of an error, a status code `400` is returned.
@@ -186,7 +186,7 @@ PUT /projects/:id/environments/:environments_id
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user |
| `environment_id` | integer | yes | The ID of the environment |
| `name` | string | no | The new name of the environment |
-| `external_url` | string | no | The new external_url |
+| `external_url` | string | no | The new `external_url` |
```shell
curl --request PUT --data "name=staging&external_url=https://staging.example.gitlab.com" --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/environments/1"