update query string and put method