post to api fixed