Implement UPDATE function with REST