Create API endpoint to update a Protected Environment
Release notes
In this update, we have added a new endpoint for the protected environments API that lets you update the configuration settings. This is useful for changing who is allowed to deploy and how many approvals are required.
Problem to solve
The Protected Environments API does not have an endpoint to update a Protected Environment. This functionality is useful for changing who's allowed to deploy, or how many approvals are required. The Project Settings UI allows a user to change who's allowed to deploy. For the API, users can work around the lack of an update endpoint by deleting and recreating the Protected Environment that they wish to edit, but this is not ideal.
Proposal
Add a PUT
endpoint to the Project and Group-level Protected Environment APIs. Some of the business logic in the ProtectedEnvironmentsController
can be reused for the API.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.