For ten points, name this position held at various points in history and under different official titles by al-Hakim, Piankhi, Muhammad Ali, and Farouk I.
(description and more specific answers acceptable) A child holder of this position wrote a letter to a caravan leader about how much he wanted to see a "dancing dwarf", probably an Ituri pygmy. That holder of this position ruled for 94 years. Another holder of this position signed a treaty ceding control of a key city for seven years, seven months, and seven days. This position (*) was offered to Louis IX of France during a succession crisis, and another holder ordered the name of the last Fatimid caliph removed from Friday prayers. A holder of this position was described as a "broken reed" by a taunting Assyrian army. For ten points, name this position held at various points in history and under different official titles by al-Hakim, Piankhi, Muhammad Ali, and Farouk I.
(description and more specific answers acceptable) A child holder of this position wrote a letter to a caravan leader about how much he wanted to see a "dancing dwarf", probably an Ituri pygmy.
Ruler  (King, Sultan, Pharaoh, Caliph, Khedive) of  Egypt