found solution to api post problem