Update an environment

Updates the specified environment with the provided fields.