It was a German plan to overthrow Zahir Shah and reinstate anti-British Amanullah Khan on the throne of Kabul. Despite some diplomatic and ground preparations, it was Hitler who called off this plan in 1939.
Short thread.
Germany's Kaiser Wilhelm II wanted to use the frontier tribes of Waziristan against the British - who were already resisting the British.
If, and how much did the German-Ottoman expedition influence Amanullah's war of independence is another question though.
All these efforts, however, did not bear any significant results.