Who can apply for a patent?

A patent application can be made by true and the first inventor who enjoys the ownership of the invention, An assignee/legal representative of the inventor or the legal heir of the inventor can apply for the patent in case of the death of the true and first inventor.