Update rest environment