Make API POST work when data is not passed