Complete working PUT implementation for entity