Change goal api to post