diff options
Diffstat (limited to 'doc/api/environments.md')
-rw-r--r-- | doc/api/environments.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/environments.md b/doc/api/environments.md index 0f969ea4fd3..89b4bb6a1de 100644 --- a/doc/api/environments.md +++ b/doc/api/environments.md @@ -20,7 +20,7 @@ GET /projects/:id/environments | `id` | integer/string | yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding) owned by the authenticated user | | `name` | string | no | Return the environment with this name. Mutually exclusive with `search` | | `search` | string | no | Return list of environments matching the search criteria. Mutually exclusive with `name` | -| `states` | string | no | List all environments that match a specific state. Accepted values: `available`, `stopping` or `stopped`. If no state value given, returns all environments. | +| `states` | string | no | List all environments that match a specific state. Accepted values: `available`, `stopping`, or `stopped`. If no state value given, returns all environments. | ```shell curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/environments?name=review%2Ffix-foo" @@ -279,7 +279,7 @@ Example response: } ``` -## Edit an existing environment +## Update an existing environment Updates an existing environment's name and/or `external_url`. |