proton_update_environment function

Update an environment