 environment</h2>
<blockquote>
<ul>
<li><a href="https://gitlab.com/gitlab-org/gitlab/-/issues/351854">Introduced</a> in GitLab 15.4.</li>
</ul>
</blockquote>
<p>Updates a single environment.</p>
<p><code>plaintext
PUT /projects/:id/protected_environments/:name</code></p>
<p>| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| <code>id</code>                            | integer/string | yes | The ID or <a href="rest/index.md#namespaced-path-encoding">URL-encoded pat