Enabled POST in API

Added a clause to convert  to  if one needed parameter is given