Implemented PUT support for updating a resource

implemented PUT support for updating a resource