added PUT method to API