Updated for PUT method