refacto post new api
refacto post new api