The PUT /api/v1/environments/{{envID}} endpoint updates the environment specified by its ID in the request URL.