Make post request more generic