Was Qasem Soleimani's assassination legal?

The US says it acted to prevent future Iranian attacks, but what are the legal grounds for this?
تعليقات القراء