fix post for api