Added put method to entity api