Changed get to post in api