Making post work on the api.