Changed update rest calls from post to put.