Updated to make PUT on generic resources work