updates post request in api so it's now functional