Article 46 Vienna Convention on Diplomatic Relations
A sending State may with the prior consent of a receiving State, and at the request of a third State not represented in the receiving State, undertake the temporary protection of the interests of the third State and of its nationals.
See also: Article 45 Vienna Convention on Diplomatic Relations